Saved Bookmarks
| 1. |
Input a string and display its initials |
|
Answer» ong>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! |
|