my dog learned polymorphism
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "while after while" Watch "while after while" New topic

while after while

Stoian Ovidiu

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.


Paul Clapham

Joined: Oct 14, 2005
Posts: 19864

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!