Rank Numbers in Java
If you have a list of values in Java, you sometimes want to sort them. Other times, rather than sort them, you may want to determine the order that they would be sorted…or in other words rank them.
So if you create a list in this way:
ArrayList list = new ArrayList();
list.add(0);
list.add(3);
list.add(1);
…and sorted it, the list would [...] Read more »
