Points in plane sources code
PointsInThePlane.javapackage pointsinplane; public class PointsInPlane { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Point A=new Point(2,4); Point B=new Point(8, 3); MainWindow mainWindow=new MainWindow(A,B); System.out.println("Before: A("+A.x+","+A.y+")"); System.out.println("Before: B("+B.x+","+B.y+")"); //After moving A.x=1; A.y=3; mainWindow.moveToPoint(A, B); System.out.println("After moving: A("+A.x+","+A.y+")"); System.out.println("After moving: B("+B.x+","+B.y+")"); } } |
|