toLowerCase() Java - How to convert lowercase to uppercase


toLowerCase() in Java

The method called toLowerCase() converts all letters into lowercase. For example, the String "LIFE IS GREAT" will be converted into "life is great".


How To Call the Method:


If you run this code on your computer, you will see the following in the console:


We have applied the method called toLowerCase to 3 Strings:

  • "I love JAVA"
  • "TEXT 1 2 3"
  • "vertex"

As a result:

  • "I love JAVA" was converted into "i love java"
  • "TEXT 1 2 3" was converted into "text 1 2 3 "
  • "vertex" was returned as "vertex", because initially it was already lowercase.

* The method toLowerCase() has another realization - with the parameter Localе. Later on we will write a separate article on this.

That's if for this article. You can find more articles in our Java Tutorial for Beginners.


Самоучители--узнать детальнее--