Four Stars

How to change from small letters to capital and capital to small letters.

Input:-"r Raj na Na sa" 

 

Output:-"R jAJ NA nA SA"

 

Note:-There are space between letters.

1 REPLY
Seven Stars

Re: How to change from small letters to capital and capital to small letters.

try to use a combination of substring(), toLowerCase() and toUpperCase()  methods of your string.