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