All pastes #420078 Raw Edit

Mine

public java v1 · immutable
·published 2007-04-01 20:56 UTC
rendered paste body
/** *	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 + ")";	 } }