Write a program in java to store 5 words in a single dimensional array and frame a new word by taking out the first character of each word. Arrange the alphabets of the new words in ascending order and display the resultant word.
Firstly take array of 5 words then use charat() method to obtain the desired char.then store that char in an another array and print that
take an array of 5 words . then by using method charAt() method of string class get the first character of each string in array then print the word by joining each character .