-------------------------
/* program to Convert Upper Character to Lower Character */
class uptolo
{
public static void main(String a[])
{
int i;
char c;
c=a[0].charAt(0);
i=c;
if(i>=65&&i<=80)
{
System.out.println("Enterd Character is :"+c);
i=i+32;
c=(char)i;
System.out.println(" Lower Character is:"+c);
}
else
{
System.out.println("pleas enter a correct case Character");
}
}
}
0 comments:
Post a Comment