Driver code
public static void main ( String [ ] args ) { Point p1 = new Point ( 20 , 10 ) , p2 = new Point ( 10 , 20 ) , p3 = new Point ( 20 , 20 ) , p4 = new Point ( 10 , 10 ) ; System . out . println ( isSquare ( p1 , p2 , p3 , p4 ) == true ? " Yes " : " No " ) ; } }