Copyright © tutorialspoint.com

Java - toUpperCase() Method

previous next


Description:

The method returns the uppercase form of the specified char value.

Syntax:

char toUpperCase(char ch)

Parameters:

Here is the detail of parameters:

Return Value :

Example:

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

previous next

Copyright © tutorialspoint.com