| Author |
Inner Local Classes
|
Saira Dhanani
Greenhorn
Joined: Sep 07, 2006
Posts: 3
|
|
Need some help with the following program When trying to print in the Non static local class the following error is encountered C:\java>javac TLCWithLoacalClasses.java TLCWithLoacalClasses.java:30: <identifier> expected System.out.println("xyz"); Thanks for helping Saira
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
|
This is a simple syntax error. You are putting an executable statement "System.out.println("xyz");" in the wrong place. It needs to be in a method.
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
Saira Dhanani
Greenhorn
Joined: Sep 07, 2006
Posts: 3
|
|
|
Thank You ...
|
 |
 |
|
|
subject: Inner Local Classes
|
|
|