I'm not getting any compilation error with
Java 1.5. It runs and prints a b c z (on separate lines).
What error are you getting?
By the way, the appropriate method is Arrays.sort(Object[] array). A String is an Object, right? And String implements the Comparable interface.
[ October 22, 2004: Message edited by: Barry Gaunt ]