/** * Class that represents a 2-dimensional point with integer coordinates. */ public class IntPoint{ public protected int x,y; // public main(){ // won = new IntPoint(); // twa = new IntPoint(1,1); // System.out.println(twa); // } public IntPoint(){ x = 0; y = 0; } public IntPoint(int x,int y){ this.x = x; this.y = y; } public String toString(){ return "(" + x + "," + y + ")"; } }