wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes A PROBLEM WITH while loop~~~ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "A PROBLEM WITH while loop~~~" Watch "A PROBLEM WITH while loop~~~" New topic
Author

A PROBLEM WITH while loop~~~

Jose Cisse
Greenhorn

Joined: Mar 20, 2006
Posts: 28


i am trying to creat a wile loop under fileloading... ...but there is a error message saying "private void enterrecord()" is illegal~~~
i dont think i did this loop in a right way... ...anyone teach me how do this right???~~~

MANY THX~~~
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Usually when you get an error like that it means that in the structure before it there is probably a missing brace. If you go through the previous method and check you may see that you had an opening brace without a closing brace or a closing brace without an opening brace.
Jose Cisse
Greenhorn

Joined: Mar 20, 2006
Posts: 28
oh~~~you are right~~~thanks~~~
[ March 22, 2006: Message edited by: Jose Cisse ]
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Do not use CAPS which represents you are shouting at some one.


What is your new problem? One problem I could see is your if else loop is wrong. else block should immediaately follow after if.
Jose Cisse
Greenhorn

Joined: Mar 20, 2006
Posts: 28
Originally posted by KJ Reddy:
Do not use CAPS which represents you are shouting at some one.


What is your new problem? One problem I could see is your if else loop is wrong. else block should immediaately follow after if.


oh, sorry, didnt mean shouting at people... ...

new problem?...oh~~~i just worked it out, thanks your help anyway~~~

many thx
 
GeeCON Prague 2014
 
subject: A PROBLEM WITH while loop~~~