I have an array of filenames and need to sort that array by the extensions of the filename. Is there an easy way to do this?
Create your own Comparator that treats the strings as filenames and compares them based on the extensions. Then use Arrays.sort with the Comparator argument.