Tuesday, 13 August 2013

How to change String Upper And Lower case

Converting your Java strings of text to upper or lower case. Just use the inbuilt methods toUpperCase and toLowerCase.

WAP to change string upper and lower case.

class cases{
public static void main(String args[])
{
String s=" maninder";
System.out.println(s.toUpperCase());
String s1=" MANINDER";
System.out.println(s1.toLowerCase());

}
}

Output of the program:


String functions



Like the Post? Do share with your Friends.

No comments:

Post a Comment

IconIconIconFollow Me on Pinterest

Blogger news

Blogroll

What's Hot