public class StringLowerAndUpper
{
public static void main(String args[])
{
String s1="My name is Sukhvir Singh.";
System.out.println("Original String is");
System.out.println(s1);
String s2=s1.toLowerCase();
System.out.println("\nString in Lower Case is");
System.out.println(s2);
String s3=s1.toUpperCase();
System.out.println("\nString in Upper Case is");
System.out.println(s3);
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.