Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes while after while Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "while after while" Watch "while after while" New topic
Author

while after while

Stoian Ovidiu
Greenhorn

Joined: Jul 07, 2008
Posts: 6
Why don`t complie a while after while in the some method?
If i set a class reference in main method and after while I access a method from class reference return compile error.

Ex:

Ex:
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It would help if you posted some real code which doesn't compile. And it would help if you told us what error message the compiler produced.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: while after while