Lutin Verasoi

Greenhorn
+ Follow
since Sep 08, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lutin Verasoi

Can you recommend one that would be a good precursor to the exam guide?
Thank you for your reply. I understand that it needs the method main. My question was how should the code be modified so that the main method is included? The example I gave showed a class that contained the method called coolMethod. How do I include this in the class as well as the main method? I need to know the syntax and I can't seem to find an example of this anywhere.
Can you please tell me how to modify this code (taken directly from the SCJP Sun Certified Programmer for Java 6 Study Guide (Exam 310-065) book) so it executes?
I keep getting the error message java.lang.NoSuchMethodError: main
Exception in thread "main" when I try to execute the examples from this book. I am told it's because the code doesn't include the main method, but I haven't found any information on what the correct syntax is for including the main methods and the other methods in the class. Here is the code -- any advice on how to modify it would be appreciated. Other examples that only include the main method have worked when I've executed them so I don't think this is an issue with my Classpath.

class Zoo {public String coolMethod(){
return "Wow baby";
}

}