This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
dear harish, Class which has main method need not be public. The exception may be due to, David must have tried to run : java DOG , which doesnt have main method , instead of DOGTESTDRIVE
Joined: Feb 19, 2007
Thanks so much for your help. The last program I wrote and ran was either Fortran or Algol back in 1969 so it never crossed my mind to start anywhere but at the first line of the program. Starting with DogTestDrive instead of Dog did the trick.