I have array of custom integers:
ArrayList<MyCustomInteger> list1 = new ArrayList<MyCustomInteger>
I need integers to be custom since i want them to hold some additional methods. Now this doesn't work for custom:
Collections.sort(list1);
How can I sort them?