Java Program to Convert Lowercase to Uppercase

Convert Lowercase to Uppercase

To convert/change lowercase string/character to uppercase string/character in Java programming, you have to use ASCII value to
convert the lowercase character into uppercase character as shown in the following first program. And the second program, uses the
method toUpperCase() to convert lowercase string into uppercase string.

Convert Character from Lowercase to Uppercase

To convert the lowercase character into uppercase character in Java Programming, you have to ask to the user to enter the character,
now start converting lowercase character to uppercase character by using ASCII values. To convert lowercase to uppercase, just minus 32 from
the character since the ASCII value of 'A' is 65 and the ASCII value of 'a' is 97, so 97-65=32. So to convert character from
lowercase to uppercase just minus 32 from the character.

Java Programming Code to Convert Lowercase Character to Uppercase

Following Java Program ask to the user to enter a character in lowercase to convert it into uppercase, then display the
result on the screen: