toLowerCase() and toUpperCase() - String Methods in Java
This article is a part of
String Methods in Java.
The toUpperCase() and toLowerCase() method converts all the characters of the string into upper and lower cases respectively.
The return type for toUpperCase() and toLowerCase() is String. Let us look at an example for this method.
Let us look at the output of the above.