// CSE 142, Summer 2008 (Marty Stepp) // This program uses our Point class and creates/manipulates a few Point objects. public class PointTest { public static void main(String[] args) { // create two Point objects Point p1 = new Point(); p1.x = 2; p1.y = 17; Point p2 = new Point(); p2.x = -5; p2.y = 23; // print information about the Point objects System.out.println("(" + p1.x + ", " + p1.y + ")"); System.out.println("(" + p2.x + ", " + p2.y + ")"); p1.hello(); // shift the Points' positions several times // p1.x += 6; // p1.y += 4; p1.translate(6, 4); // p1.translate(6, 4); // p1.x += 3; // p1.y += 9; p1.translate(3, 9); // p2.x += 32; // p2.y += 95; p2.translate(32, 95); // p2.x += -52; // p2.y += 15; p2.translate(-52, 15); // Scanner.nextInt(console); // console.nextInt(); } }