StringUtil { public static String toUpperCase(CharSequence string) { char upperCaseChars[] = new char[string.length()]; for (int i = 0; i < string.length(); i++) { upperCaseChars[i] = Character.toUpperCase(string.charAt(i)); } return new String(upperCaseChars); }  static boolean isWhitespace(char charCode); static boolean isWhitespace(int charCode); static String toLowerCase(CharSequence string); static String toUpperCase(CharSequence string); static boolean isEmpty(CharSequence theString);  }
@Test public void testToUpperCase() { assertEquals("TEST", StringUtil.toUpperCase("test")); assertEquals("SIMPLE", StringUtil.toUpperCase("simple")); }