input a string and display its initials
Answers
Answered by
1
Answer:
use charAt(); function
Explanation:
First add whitespace to string.
String s = Mount Everest;
String w =" ";
s = s+w;
Then compare each character. If char is whitespace, display the next char that will be the initial letter of String.
HOPE IT WILL HELP!
Similar questions