help me to write a program to sort using sort() function in JAVA ?

Alex

New member
import java.io.*;
import java.util.Arrays;

class Sorting {
public static void main(String args[]) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

String[] names = br.readLine();
Arrays.sort(names);
System.out.println(Arrays.toString(names));


}
}

plz help me wid this... i ll rate u wid the best ..........i wanna run this program...and i should use Buffered Reader....
 
Back
Top