Java program to sort array of string
import java.util.Arrays; class SortString { public static void main(String args[]) { String[] names = {"Zoe", "Alison", "David"}; Arrays.sort(names); System.out.println(Arrays.toString(names)); } }
import java.util.Arrays; class SortString { public static void main(String args[]) { String[] names = {"Zoe", "Alison", "David"}; Arrays.sort(names); System.out.println(Arrays.toString(names)); } }
Copyright @ 2013 Appychip.
itna Assan than padha nahi nahi toh yahi question attempt karta yaar.....
ReplyDelete