LeetCode随缘刷题之转化成小写字母


这道题应该是最简单的一道题了把,简直在侮辱我。

package leetcode.day_12_12;

/**
 * 709. 转换成小写字母
 * 给你一个字符串 s ,将该字符串中的大写字母转换成相同的小写字母,返回新的字符串。
 * 

* 示例 1: *

* 输入:s = "Hello" * 输出:"hello" * 示例 2: *

* 输入:s = "here" * 输出:"here" * 示例 3: *

* 输入:s = "LOVELY" * 输出:"lovely" * * @author soberw * @Classname haha * @Description * @Date 2021-12-12 14:42 */ public class ToLowerCase0709 { /** * @param s 将要转换的字符串 * @description: 将字符串 s 中的大写字母转换成相同的小写字母,返回新的字符串。 * @return: 新的字符串 * @author: soberw * @time: 2021/12/12 14:44 */ public String toLowerCase(String s) { return s.toLowerCase(); } }

在这里插入图片描述