@Test public void testDecapitalize() { assertThat(ReflectionUtil.decapitalize("a"), is("a")); assertThat(ReflectionUtil.decapitalize("B"), is("b")); assertThat(ReflectionUtil.decapitalize("cCcCc"), is("cCcCc")); assertThat(ReflectionUtil.decapitalize("DdDdD"), is("ddDdD")); }
static String decapitalize(String name) { if (Character.isLowerCase(name.charAt(0))) { return name; } char[] chars = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); }
ReflectionUtil { static String decapitalize(String name) { if (Character.isLowerCase(name.charAt(0))) { return name; } char[] chars = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } }
ReflectionUtil { static String decapitalize(String name) { if (Character.isLowerCase(name.charAt(0))) { return name; } char[] chars = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } private  ReflectionUtil(); }
ReflectionUtil { static String decapitalize(String name) { if (Character.isLowerCase(name.charAt(0))) { return name; } char[] chars = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } private  ReflectionUtil();  }
ReflectionUtil { static String decapitalize(String name) { if (Character.isLowerCase(name.charAt(0))) { return name; } char[] chars = name.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } private  ReflectionUtil();   }