tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Java > Core > Character > To Uppercase

To Uppercase 

The following example shows how to use Character.toUpperCase() API.

File Name  :  
com/bethecoder/tutorials/core/character/CharToUpperCase.java 
Author  :  Sudhakar KV
Email  :  [email protected]
   
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



 
  


  
bl  br