Viewing code of Check
// ------ ../cgi-bin/java/Check.java --------------
//--- Programmed By Rajesh -----

class Point{
int x;
int y;
boolean equals(Point p){
return ((x==p.x) && (y==p.y));
}
Point( int x, int y) {
this.x = x;
this.y = y;
}
}

class Line{
Point p1;
Point p2;

Line( Point a1, Point a2) {
p1 = a1;
p2 = a2;
}

boolean equals (Line l){
return( p1.equals(l.p1) && p2.equals(l.p2) );
}
}

class Check{
public static void main(String args[]){
Point p1 = new Point(2,2);
Point p2 = new Point (3,3);

Line yel1 = new Line(p1,p2);
Line yel2 = new Line(p1,p2);

System.out.println("l1 equals l2 : " + yel1.equals(yel2));
}
}