can the function toUpperCase be used to convert a character to uppercase in java.
I know we can use it for String but can we use it for char datatype.
plz reply fast.It is very urgent.
Answers
Answered by
0
Answer:
Yes of course but the way is a bit different.
let a string be named q
then to convert.it into uppercase we write: q.toUpperCase();
But in case of Character you will have to use char data type's wrapper class Character.So to convert a character into uppercase we write
Character.toUpperCase(char q);
Similar questions