Hi all,
I can use a little help here
I have an array String[] tempnames, wich I want to be sorted alphabeticly not case sensitive.
Here's my current code:
Thanks in advance
Greetz, Chris
I can use a little help here
I have an array String[] tempnames, wich I want to be sorted alphabeticly not case sensitive.
Here's my current code:
Code:
import java.util.Arrays; public class HelloWorld { public static void main (String[] args) { String[] tempnames = {"Chris","Remco","admin","moderator"}; Arrays.sort(tempnames); for(int i=0;i<tempnames.length;i++) { System.out.println(tempnames[i]); } } }
Greetz, Chris
Comment