java:jfc_interfaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
java:jfc_interfaces [2017/05/12 12:28]
gthanos
java:jfc_interfaces [2017/05/12 13:20] (current)
gthanos
Line 54: Line 54:
   ​   ​
   public boolean equals(Object obj) {   public boolean equals(Object obj) {
-    if(!obj.instanceof Student )+    if(!(obj instanceof Student)
       return false;       return false;
     Student st = (Student)obj;​     Student st = (Student)obj;​
java/jfc_interfaces.1494592131.txt.gz · Last modified: 2017/05/12 12:28 by gthanos