Class Solution

java.lang.Object
g0701_0800.s0709_to_lower_case.Solution

public class Solution extends Object
709 - To Lower Case.<p>Easy</p> <p>Given a string <code>s</code>, return <em>the string after replacing every uppercase letter with the same lowercase letter</em>.</p> <p><strong>Example 1:</strong></p> <p><strong>Input:</strong> s = &ldquo;Hello&rdquo;</p> <p><strong>Output:</strong> &ldquo;hello&rdquo;</p> <p><strong>Example 2:</strong></p> <p><strong>Input:</strong> s = &ldquo;here&rdquo;</p> <p><strong>Output:</strong> &ldquo;here&rdquo;</p> <p><strong>Example 3:</strong></p> <p><strong>Input:</strong> s = &ldquo;LOVELY&rdquo;</p> <p><strong>Output:</strong> &ldquo;lovely&rdquo;</p> <p><strong>Constraints:</strong></p> <ul> <li><code>1 <= s.length <= 100</code></li> <li><code>s</code> consists of printable ASCII characters.</li> </ul>
  • Constructor Details

    • Solution

      public Solution()
  • Method Details