I got an error while sorting an paired integer ArrayList i.e. cannot find symbol comparator in below code:
Collections.sort(possibleHeights,new Comparater<Pair>(){
public int compare(Pair p1,Pair p2)
{
return p1.getValue()-p2.getValue();
}
});