java program to sort array of strings
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));
}
}
itna Assan than padha nahi nahi toh yahi question attempt karta yaar…..