It's not a secret anymore!
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


Win a copy of Building Microservices this week in the Design forum!
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
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  10

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
 
It's not a secret anymore!