Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

Convert lower case char to upper case char example

  1. /*
  2.  * Convert lower case char to upper case char example.
  3.  */
  4.  
  5. public class LowerCharToUpperChar {
  6.  
  7.  public static void main(String args[]){
  8.  
  9.   char lowerCaseCh = 'd';
  10.  
  11.   /*
  12.    * to convert lower case char to upper case use static toUpperCase method
  13.    * of Character class.
  14.    */
  15.  
  16.   char upperCaseCh = Character.toUpperCase(lowerCaseCh);
  17.  
  18.   System.out.println("Lower case char converted to upper case char: " + upperCaseCh);
  19.    
  20.  
  21.  }
  22.  
  23. }
Your rating: None Average: 1 (1 vote)
Share this
Bharat's picture

I need a program to change

I need a program to change case of string.

Post new comment

3 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.