Converted to lowercase

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;
    
}
}
Published 71 original articles · won praise 3 · Views 1058

Guess you like

Origin blog.csdn.net/qq_44262984/article/details/104187668