class ArraySort { // This program is the example of array sorting public static void main(String[] args) { // TODO Auto-generated method stub // initializing unsorted array String iArr[] = {"Programming", "Hub", "Alice", "Wonder", "Land"};
// sorting array Arrays.sort(iArr);
// let us print all the elements available in list System.out.println("The sorted array is:"); for (int i = 0; i < iArr.length; i++) { System.out.println(iArr[i]); } } }
This channel will serve you all the Codes and Programs of java Programming Language. Contact Admin: @Pravin_Suthar . Youtube channel: . https://www.youtube.com/channel/UCWFwwPMuAx_DY3hi9Tin7gA. Like s...