package com.fishercoder.solutions;

public class _709 {
    public static class Solution1 {
        public String toLowerCase(String str) {
            return str.toLowerCase();
        }
    }
}

@@ -29,16 +29,65 @@
 tions;%0A%0A
+import java.util.HashMap;%0Aimport java.util.Map;%0A%0A
 public c
@@ -180,48 +180,813 @@
 ng s
-tr) %7B%0A            return str.toLowerCase
+) %7B%0A            return s.toLowerCase();%0A        %7D%0A    %7D%0A%0A    public static class Solution2 %7B%0A        public String toLowerCase(String s) %7B%0A            Map%3CCharacter, Character%3E map = new HashMap%3C%3E();%0A            String upper = new String(%22ABCDEFGHIJKLMNOPQRSTUVWXYZ%22);%0A            String lower = new String(%22abcdefghijklmnopqrstuvwxyz%22);%0A            for (int i = 0; i %3C upper.length(); i++) %7B%0A                map.put(upper.charAt(i), lower.charAt(i));%0A            %7D%0A            StringBuilder sb = new StringBuilder();%0A            for (int i = 0; i %3C s.length(); i++) %7B%0A                if (map.containsKey(s.charAt(i))) %7B%0A                    sb.append(map.get(s.charAt(i)));%0A                %7D else %7B%0A                    sb.append(s.charAt(i));%0A                %7D%0A            %7D%0A            return sb.toString
 ();%0A

add a solution for 709