You are viewing a single comment's thread. Return to all comments →
Java Solution
if( (a.score) == (b.score) ){ return (a.name).compareTo(b.name); } return (b.score) - (a.score);
Seems like cookies are disabled on this browser, please enable them to open this website
Sorting: Comparator
You are viewing a single comment's thread. Return to all comments →
Java Solution