write a program to input a character and convert into its opposite case. Print the original character and the new character
Answers
Answered by
5
Explanation:
What you want to do is convert the string to an array using the String class' charAt() method, and then use Character.toUpperCase() to change the character to upper case (obviously). Your code would look like this: char first = Character.toUpperCase
Similar questions