Wednesday, 7 March 2012

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));
    }
}

1 comments:

  1. itna Assan than padha nahi nahi toh yahi question attempt karta yaar.....

    ReplyDelete

 

Copyright @ 2013 Appychip.

Designed by Appychip & YouTube Channel