posted 16 years ago
1- You can't call instance method add() in a way static methods (class method) are called. Either make add() method static or call it using instance of the Exam class.
2- After that, the main continue issue,
line
System.out.println("Hello.");
is not reachable. Because before that there is a continue statement. The compiler is 100% sure that it would be injustice with the print statement, because there wont be any chance, it could be executed.
With Regards,
cmbhatt