write a java program to input a word .the program should then arrange and then print all the letters in alphabetical order..example AADHAR
AAADHR..
PLSE DO IT FASSTT...IT IS ARGENT
Answers
Answered by
0
Answer:
In this program, we are asking user to enter the count of strings that he would like to enter for sorting. Once the count is captured using Scanner class, we have initialized a String array of the input count size and then are running a for loop to capture all the strings input by user.
Once we have all the strings stored in the string array, we are comparing the first alphabet of each string to get them sorted in the alphabetical order.
Similar questions