1535. 转换成小写字母
实现函数 ToLowerCase()
,该函数接收一个字符串参数 str,并将该字符串中的大写字母转换成小写字母,之后返回新的字符串。
样例
Example 1:
Input: "Hello"
Output: "hello"
Example 2:
Input: "here"
Output: "here"
Example 3:
Input: "LOVELY"
Output: "lovely"
public class Solution {
/**
* @param str: the input string
* @return: The lower case string
*/
public String toLowerCase(String str) {
// Write your code here
return(str.toLowerCase());
}
}