Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Changing Case of Character in BlueJ



import java.io.*;
class CaseChanging

{
 BufferedReader br=new BufferedReader (new InputStreamReader(System.in));
char ch;

public void take() throws Exception
{
 System.out.print("\nEnter the character:");
ch=(char)br.read();
System.out.println("Entered Character is:”+ch);
ch=Character.toUpperCase(ch);
System.out.println("Modified Character is:”+ch);
}


public static void main(String args[]) throws Exception
{
 CaseChanging ob=new CaseChanging ();
ob.take();
}
}





import java.io.*;
class CaseChanging

{
 BufferedReader br=new BufferedReader (new InputStreamReader(System.in));
char ch;

public void take() throws Exception
{
 System.out.print("\nEnter the character:");
ch=(char)br.read();
System.out.println("Entered Character is:”+ch);
ch=Character.toLowerCase(ch);
System.out.println("Modified Character is:”+ch);
}

public static void main(String args[]) throws Exception
{
 CaseChanging ob=new CaseChanging ();
ob.take();
}
}



This post first appeared on Tutorial Site On Computer Programming Languages F, please read the originial post: here

Share the post

Changing Case of Character in BlueJ

×

Subscribe to Tutorial Site On Computer Programming Languages F

Get updates delivered right to your inbox!

Thank you for your subscription

×