32,199 Topics

Member Avatar for
Member Avatar for NinjaLink
Member Avatar for nolimit966

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 …

Member Avatar for tjsail
0
742
Member Avatar for NinjaLink

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 …

Member Avatar for NinjaLink
0
97
Member Avatar for tjsail

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 …

Member Avatar for JamesCherrill
0
5K
Member Avatar for eldhoksuresh

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 …

Member Avatar for jwenting
-1
110
Member Avatar for iamsmooth

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.

Member Avatar for jwenting
0
1K
Member Avatar for eldhoksuresh

[B][/B]every time i create a file in java a window opens with created file in it... how to avoid this.... pls help

Member Avatar for jwenting
0
71
Member Avatar for Grn Xtrm

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 …

Member Avatar for cymercutie88
0
1K
Member Avatar for Risk24

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 …

Member Avatar for endsamsara
0
191
Member Avatar for redmaverick

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 …

0
61
Member Avatar for eldhoksuresh

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

Member Avatar for eldhoksuresh
0
84
Member Avatar for vivek4020

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 …

0
86
Member Avatar for sujithy15

what is an ide how is it different from traditional java platform ? what is java beans?

Member Avatar for sujithy15
0
185
Member Avatar for kgkamaraj

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 …

Member Avatar for java..
-2
71
Member Avatar for computerfreak.7

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 …

Member Avatar for musthafa.aj
-1
80
Member Avatar for chie12024

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 …

Member Avatar for javaAddict
0
92
Member Avatar for qariella

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 …

Member Avatar for JamesCherrill
0
156
Member Avatar for Hawkflame

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 …

Member Avatar for peter_budo
0
111
Member Avatar for gitech

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 …

Member Avatar for peter_budo
0
185
Member Avatar for craztfreak04

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 …

Member Avatar for masijade
-3
173
Member Avatar for kgkamaraj

String[] temp=null; String st3=new String(temp); I use this code but error message is shown. I need how to recover this error.

Member Avatar for musthafa.aj
0
128
Member Avatar for laelzio.mosca

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 …

Member Avatar for musthafa.aj
0
108
Member Avatar for Relative0

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 …

Member Avatar for crunchie
0
49
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
91
Member Avatar for jorgelex008

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 …

Member Avatar for jorgelex008
0
170
Member Avatar for FotG2

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 …

Member Avatar for Ezzaral
0
114
Member Avatar for selenask

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.

Member Avatar for Ezzaral
0
69
Member Avatar for KirkPatrick

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 …

Member Avatar for KirkPatrick
0
101
Member Avatar for FotG2

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 …

Member Avatar for FotG2
0
925
Member Avatar for baloonie

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 …

Member Avatar for Ezzaral
0
111

The End.