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();
}
}
Related Post: Programs on Character Class
No comments:
Post a Comment