Implementing a function toLowerCase (), the function takes a string argument str, and converts the string to uppercase to lowercase, and then returns the new string.
Example 1:
Enter: "Hello"
Output: "hello"
Example 2:
Enter: "here"
Output: "here"
Example 3:
Enter: "LOVELY"
Output: "lovely"
class Solution {
public String toLowerCase(String str) {
String str1=str.toLowerCase();
return str1;
}
}