YouTip LogoYouTip

Character Touppercase

# Java toUpperCase() Method [![Image 3: Java Character Class](#)Java Character Class](#) * * * The toUpperCase() method is used to convert a lowercase character to uppercase. ### Syntax char toUpperCase(char ch) ### Parameters * **ch** -- The character to be converted. ### Return Value Returns the uppercase form of the character, if one exists; otherwise, returns the character itself. ### Example public class Test {public static void main(String args[]) {System.out.println(Character.toUpperCase('a'));System.out.println(Character.toUpperCase('A'));}} The output of the above program is: A A * * Java Character Class](#)
← Character TostringCharacter Isuppercase β†’