Change character case
static char toTitleCase(char ch)
- Converts to titlecase.
static char toUpperCase(char ch)
- Converts to uppercase.
static char toLowerCase(char ch)
- Converts to lowercase.
public class Main{
public static void main(String[] argv){
System.out.println(Character.toTitleCase('a'));
System.out.println(Character.toUpperCase('a'));
System.out.println(Character.toLowerCase('a'));
}
}
The output:
A
A
a