//The answer must have balanced parentheses class Point { int x; int y; public Point(int x, int y) {this.x = x; this.y = y;} [???] } public class Exercise{ public static void main(String [] arg){ Point p1 = new Point(1,2); Point p2 = new Point(1,2); assert p1.equals(p2); } }
equals
p1
p2
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)