Java toUpperCase () method
toUpperCase () method is used to lowercase characters converted to uppercase.
grammar
char toUpperCase(char ch)
parameter
ch - the character to be converted.
return value
After returning to convert uppercase characters, if any; otherwise the character itself.
Examples
public class Test { public static void main(String args[]) { System.out.println(Character.toUpperCase('a')); System.out.println(Character.toUpperCase('A')); } }
The above program execution results:
A A