This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
java:jfc_interfaces [2017/05/12 12:28] gthanos |
java:jfc_interfaces [2017/05/12 13:20] 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; |