@@ -0,0 +1,1269 @@
+import org.junit.Test;%0Aimport static org.junit.Assert.assertEquals;%0Aimport org.junit.runners.JUnit4;%0A%0Aimport java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0Aimport java.lang.StringBuilder;%0A%0Aclass Solution%7B%0A%0A  static String toCamelCase(String s)%7B%0A    Matcher m = Pattern.compile(%22%5B_%7C-%5D(%5C%5Cw)%22).matcher(s);%0A    StringBuffer sb = new StringBuffer();%0A    while (m.find()) %7B%0A        m.appendReplacement(sb, m.group(1).toUpperCase());%0A    %7D%0A    return m.appendTail(sb).toString();%0A  %7D%0A%7D%0A%0Aimport java.util.Arrays;%0A%0Aclass Solution%7B%0A%0A  static String toCamelCase(String str)%7B%0A    String%5B%5D words = str.split(%22%5B-_%5D%22);%0A    return Arrays.stream(words, 1, words.length)%0A            .map(s -%3E s.substring(0, 1).toUpperCase() + s.substring(1))%0A            .reduce(words%5B0%5D, String::concat);%0A  %7D%0A%7D%0A%0Apublic class SolutionTest %7B%0A    @Test%0A    public void testSomeUnderscoreLowerStart() %7B%0A      String input = %22the_Stealth_Warrior%22;%0A      System.out.println(%22input: %22+input);      %0A      assertEquals(%22theStealthWarrior%22, Solution.toCamelCase(input));%0A    %7D%0A    @Test%0A    public void testSomeDashLowerStart() %7B%0A      String input = %22the-Stealth-Warrior%22;%0A      System.out.println(%22input: %22+input);      %0A      assertEquals(%22theStealthWarrior%22, Solution.toCamelCase(input));%0A    %7D%0A%7D%0A

Create Convert_string_to_camel_case.java