32,199 Topics
| |
Hello, im Ant. Forum looks really good. Im currently in the very early stages of learning Java, i have a few books and am doing online tutorials etc so looks like i will be using this place and searching the forums loads in the near future. At the moment im … | |
Hey, this is my first java program. I am trying to print my original list of ages, but I can not figure it out. Please help! I have part b and part c already done. Any help is appreciated a) print original list of ages b) number of occurrences of … | |
Is this possible to do? I am looking to parse some data out of a file and based on the results of this take names found in the file and create objects out of them. for example... [code] //you have parsed the name Bob out of a file and it … | |
plss give me your valuable suggestions..... i'm on a project for developing a DBMS with SQL interpreter,in java, using netbeans6.7...the interpreter interprets only some queries like create,select,insert,update&delete...for this i need 2 create database...i prefer 2 save database as a text file & 2 perform operations in the txt file.. but … | |
I want to be able to ensure that my print is exactly as expected, so I'm wondering if there's some kind of function in java or junit that will catch what system.out.print uses so I can perform some assertions on it. Thanks for your help. | |
[B][/B]every time i create a file in java a window opens with created file in it... how to avoid this.... pls help | |
Hello. I'm trying to write a program that will convert a user input infix expression into its postfix form. My current code is allowing the user to input a string, but it does nothing with the string. I'm fairly new to JAVA, thus I think I'm making a simple mistake … | |
Hey everyone, I have no experience with writing programs. This is my first program and I'm sort of "winging it". I have a problem converting from fahrenheit to celsius, I can convert from celsius to fahrenheit fine though. The bolded part is where I'm having troubles. Here is what I've … | |
Hi. This is a homework question. I need to develop an RDP for algebraic expressions. like a+b+c*d/(h-g) etc the rules are: exp=exp(+|-)term|term term=term*factor|term/factor|factor factor=id|exp now the thing is that I created a few functions for exp, term, factor and I am able to successively and successfully separate all the terms … | |
in netbeans 6.7 i'm trying to create a text file,say man.txt using code "file fr=new file("man.txt").. code executed fine..but i can't see the file man.txt anywhere where the file is created..pls help me | |
Hi I am just learning Java DB Database in NetBeans IDE 6.8 I am following this tutorial [url]http://netbeans.org/kb/docs/java/gui-db.html[/url] The first problem is when creating the database and adding a table to it I was able to create the car_database but when i connected it and expanded the node its not … | |
what is an ide how is it different from traditional java platform ? what is java beans? | |
Hi, I am going to store a string in string tokenizer object. But i am not getting the output what i think. For example : StringTokenizer st = new StringTokenizer("I born on 21.02.1995. So, now my age is 15.", "."); [B]I will get output as :[/B] I born on 21 … | |
i finished a really simple game and i finally figured out how to make it a jar and how to edit the manifest to make it run, but my images don't appear. this is my first jar so i don't have a clue to what i should change to get … | |
On our expressways, our toll ways accept payment in cash or with the use of an ePass. Cars using cash to pay the toll will always pay the correct fee. If an ePass does not have enough credits, the remaining balance is collected by the toll lane, the car is … | |
Ive been sitting in 3 hours trying to figure out whats wrong, read in my book, seen the Powerpoint and google search and now im giving up.. This is my last resort and I hope to learn how to do it.. Would appriciate the help guys. Well, here i post … | |
Hey all, I have a program to write where I am supposed to be able to type in an array of char in one textfield and in another textfield, I can type in a "pattern" of something, enclosed in quotation marks, and click a match pattern button, outputting where that … | |
Hai Friends, Iam using J2ME , i can read a text file from jar (in res folder) by using InputStream is = getClass().getResourceAsStream("help.txt"); StringBuffer sb = new StringBuffer(); try{ int chars, i = 0; while ((chars = is.read()) != -1){ sb.append((char) chars); } return sb.toString(); }catch (Exception e){} but i … | |
i tried executing this code but it compiles with the build output as "Note: K:\tower.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Process completed." and the General output as "java.lang.NoSuchMethodError: main Exception in thread "main" Process completed." i executed this in JCreator and it does … | |
String[] temp=null; String st3=new String(temp); I use this code but error message is shown. I need how to recover this error. | |
Hi, I just started my java class a few weeks ago, I have a question if you guys can help me. I`m learning about passing arguments, so I have this small code, it works perfect, the output is " 42 84 ", but I didn`t get it. what does it … | |
Hello, I am, for some reason only getting 64K of data back from my local host as I test my program for being able to write a text file to a server and back. The remaining of the data is all spaces instead of char's, so that the original and … | |
Hello. I have 3 classes ; main.java calls gui.java [code] Gui g =new Gui(); g.createAndShowGUI(); [/code] Then I have my menu.java with the actionPerformed() I am trying to call methods of the GUI.java How can I call methods on the GUI.java to and use the methods on that instance of … | |
Hi all, I've got a JFrame in a program, and when I click on a button, I get another JFrame created, and then select from a list. This works fine. But my problem is that when I close the second JFrame the entire program exits (both the main JFrame and … | |
I have a drag-able JLabel that I'm trying to set that object to be above all other JLabel objects when its dragged. The only method I can find that sets the order is setComponentZOrder(Component,int)' But when I Try to use it, I get a large amount of errors printed to … | |
I have this error"String index out of range: 14 at java.lang.String.substring(Unknown Source)" I am unable to find the mistake in my code. A little help would be great. | |
I'm wondering if it is possible to control certain aspects in my function. All my it does is control how an object gets placed on my gui. I'm wondering if there is a way to control [I]GridBagConstraints.fill[/I] and [I]GridBagConstraints.anchor[/I] [B][U]Function:[/U][/B] [code=java] public void gridBagControl(Component ob, JPanel p, Insets in, int … | |
I am having trouble making use of a MouseMotionListener to make some card images be able to be dragged around the screen. What this program does is show a table of cards in a random order. The user will be able to drag any of the card images and move … | |
1/ Write a Java program that reads in a Name and Age (in years) of four persons and prints the name and age of the youngest person. Assume that all persons are of different age. The sample program run must look as follows: Enter the name of the person: John … |
The End.