lower & upper case
toUpperCase():
This method is used to convert the string into upper case
The
general form is.
String
toUpperCase()
E.g.
String
s="This Fine";
System.out.println(s.toUpperCase());
Output:
THIS
FINE
toLowerCase():
This method is used to convert the string into lower case
The
general form is.
String
toLowerCase()
E.g.
String
s="This Fine";
System.out.println(s.toLowerCase());
Output:
this
fine
Comments
Post a Comment