Sorting in java using value pair -


How do I sort in value / pair in java :

  (1,2) (4,2) (2,3)  

To give me the following?

  (4,2) (2,3) (1,2)  

I do not know how to compare to / Code> works Is Java something like this code? v.push_back (make_pair (1,2));


Comments