[Logo]
Forums Register Login
Sorting FileNames
hi, me again, todays question is how can i sort my FileNames from a-z in the event of a button click. the files are in the same folder as my application.
Gavin.
You might wanna checkout the java.util.Collections class, especially the sort() methods
If you have the file names in array of String then you can always sort them using the static method Arrays.sort(Object[]).
I was born with webbed fish toes. This tiny ad is my only friend:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 348 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 26, 2018 11:34:10.