|
To Uppercase
The following example shows how to use Character.toUpperCase() API.
|
package com.bethecoder.tutorials.core.character;
public class CharToUpperCase {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println(Character.toUpperCase('a'));
System.out.println(Character.toUpperCase('b'));
System.out.println(Character.toUpperCase('c'));
System.out.println(Character.toUpperCase('d'));
}
}
|
| |
It gives the following output,
A
B
C
D
|
|