This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When run under windows, the File is already sorted for you, but when run under Unix I needed to add the call to Arrays.sort(Object). If the desired sorting isn't what you are after then you will have to define your own custom sorting by implementing Comparator and calling something like Arrays.sort(Object myArray, Comparator myComparator). James.
Joined: Nov 16, 2000
Thanks for your reply. I got the alphabetically sorted list by using Arrays.sort(Object) Thanks again