Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
In 1.1 you'll have to code sorting algorithms yourself.
1.2 to the rescue !
If you have a classic String array,.....
that will be filled during runtime, so it contains
"net", "nl", "org", "com", "tv", ....
at a given moment,....
you can sort it in ascending order by issuing this statement.
You can sort arrays containing Dates, Files , any class that implements the Comparable interface, the same way.
You can even sort arrays containing simple ints, doubles and the likes this way.
In an array sorted in ascending order you can do a fast lookup.
Returns -1 if not found.
There's also an Array class, but we are using the Arrays class, with an 's'.