Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions? | Software Development
 

Alphabet Character Case-Converter

In this section, you will learn to convert a character (uppercase) into a lowercase character.

Alphabet Character Case-Converter

                         

In this section, you will learn to convert a character (uppercase) into a lowercase character. The java.lang package provides the functionality to convert the uppercase character into a lowercase character. 

Code Description:

The following program helps you in converting a uppercase character (R) into a lowercase character (r). Program takes a character (uppercase) at the console and it converts it  into a lowercase character using the  toLowerCase() method. This method converts the  uppercase character into  the lowercase character and returns converted lowercase character. 

Here is the code of this program:

import java.io.*;
import java.lang.*;

  public class CharToLowercase{
    public static void main(String args[]) throws IOException{
      BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
      System.out.println("Enter the uppercase character:");
      String s = buff.readLine();
      char c = s.charAt(0);
      char lower = Character.toLowerCase(c);
      System.out.println("Lowercase character: " + lower);
    }
  }

Download this program:

Output of this program.

C:\corejava>java CharToLowercase
Enter the uppercase character:
R
Lowercase character: r
C:\corejava>

                         

» View all related tutorials
Related Tags: c convert io help this program to learn ram ear e il section in converting m ps pro s is

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.