WEB DEVELOPER SITE
PHP7
 

Java String toLowerCase() Method



Converts all of the characters in this String to lower case using the rules of the default locale.


Syntax

Here is the syntax of this method −

public String toLowerCase()

Parameters

Here is the detail of parameters −

  • NA

Return Value

  • It returns the String, converted to lowercase.

Example

import java.io.*;
public class Test {

   public static void main(String args[]) {
      String Str = new String("Welcome to Welookups.com");

      System.out.print("Return Value :");
      System.out.println(Str.toLowerCase());
   }
}

Run example »