User Tools

Site Tools


java:jfc_intf_sort

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
java:jfc_intf_sort [2021/04/05 06:59] – [Συγκρίνοντας με χρήση ενός Comparator object] gthanosjava:jfc_intf_sort [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 42: Line 42:
      
   public boolean equals(Object o) {   public boolean equals(Object o) {
 +    if(o == null)
 +      return false;
     return (o instanceof Student && o.hashCode() == this.hashCode());     return (o instanceof Student && o.hashCode() == this.hashCode());
   }   }
java/jfc_intf_sort.1617605945.txt.gz · Last modified: 2021/04/05 05:59 (external edit)