Asked in
Java Programming
How To

How to Sort values in ascending order in java?

Answer

User Avatar
Wiki User
July 19, 2009 3:16AM

// If your values are stored in an array...

Arrays.sort(valuesArray);

// If they're stored in a List...

Collections.sort(valuesList);