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.


Return type

The return type for toUpperCase() and toLowerCase() is String. Let us look at an example for this method.


Output

Let us look at the output of the above.

String Methods toLowerCase() and toUpperCase()
Fig.1- String Method - toLowerCase() and toUpperCase()

Read More

Author : Satyam Kumar -



You will also like: