Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import java.util.Comparator;
public class PersonComparator implements Comparator<Person> {
public int compare(Person o1, Person o2) {
return o1.yas > o2.yas ? 1 : -1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment