Copyright © tutorialspoint.com
The method returns the uppercase form of the specified char value.
char toUpperCase(char ch) |
Here is the detail of parameters:
Primitive character type
Returns the uppercase form of the specified char value.
public class Test{ public static void main(String args[]){ System.out.println( Character.toUpperCase('c')); System.out.println( Character.toUpperCase('C')); } } |
This produces following result:
C C |
Copyright © tutorialspoint.com