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?
If I remember correctly, the Arrays.sort(...) takes a Comparator<> that it will use to do the sorting. You can provide an implementation of it that looks at the extension part of the string.