previous |
start |
next
Writing a Test Program
- Invent a new class, say MoveTest
- Supply a main method
- Place instructions inside the main method
- Import library classes by specifying the package and class
name:
import java.awt.Rectangle;
- You don't need to import classes in the java.lang
package such as String and System
previous |
start |
next