Tutorials Point


  Java Basics
  Java Object Oriented
  Java Advanced
  Java Useful References
  Java Useful Resources
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

Java - toUpperCase() Method


previous next AddThis Social Bookmark Button


Description:

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

Syntax:

char toUpperCase(char ch)

Parameters:

Here is the detail of parameters:

  • Primitive character type

Return Value :

  • Returns the uppercase form of the specified char 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 Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names