JiafanZhou
版主
发贴: 736
积分: 61
|
于 2006-09-21 06:28
Your code is 100% right except for the most cases, the class contains the main method will be decalred as a public modifier whereas only one public class is allowed in every file.
Well ,The error is telling you that the error is:
Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
Delete the .class files and recompile programs to insure that the .class files are valid.
Kind regards, Jiafan
When I was a kid I used to pray every night for a new bike. Then I realized that The Lord doesn't work that way, so I stole one and asked him to forgive me.
|