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
posted 12 years ago
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.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database