Write a program to convert the letters in a character array into another case. If input is 'a' make it 'A', if the input is 'M' make it 'm'. Do not use Character.toUpperCase
or Character.toLowerCase
.
Input(char Array) |
Output(char Array) |
{'c', 'o', 'c', 'o', 'N', 'U', 'T'} |
{'C', 'O', 'C', 'O', 'n', 'u', 't'} |
{'S', 't', 'U', 'd', 'E', 'n', 'T'} |
{'s', 'T', 'u', 'D', 'e', 'N', 't'} |
{'A', 'N', 'D', 'H', 'R', 'A', 'p', 'r', 'a', 'd', 'e', 's', 'h'} |
{'a', 'n', 'd', 'h', 'r', 'a', 'P', 'R', 'A', 'D', 'E', 'S', 'H'} |