This example only fetches .java files from the current selection in the Finder in descending order and returns an array of strings. String [] mySelection = new ...