This process has two variants. The first alternative converts every one of the values in this String to lower holder utilizing the rules of the known Locale. This is corresponding to calling toLowerCase(Locale.getDefault()). The second variation takes locale as a dispute to be utilized while adapting into lower case.
Here is the syntax of this method:
public String toLowerCase()
Here is the detail of parameters:
Example
import java.io.*; public class Test { public static void main(String args[]) { String Str = new String("Welcome to Intellinuts.com"); System.out.print("Return Value :"); System.out.println(Str.toLowerCase()); } }
This will produce the following result:
Return Value :welcome to intellinuts.com
Here at Intellinuts, we have created a complete Java tutorial for Beginners to get started in Java.