PPT Slide
- According to Java, you only need one main per program. . . not one per class.
- But Java doesn’t know how to program!
- To test/debug a class, create a main method for the class as part of the class . . .
- Include in “test mains” the:
declaration of variables
the invocation of methods
the generation of output
(e.g. using toString())
that will allow you to see what