Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int compareTo(Contact other){
- ////TODO: Implement a correct version of compareTo().
- // You should only care about the name, so use the compareTo in java.lang.String
- // on the name variables only.
- if(other == null){
- throw new NullPointerException("Other is NULL");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement