diff --git a/3_Strings/ConvertToUppercase.java b/3_Strings/ConvertToUppercase.java index d5e65c5..369e323 100644 --- a/3_Strings/ConvertToUppercase.java +++ b/3_Strings/ConvertToUppercase.java @@ -3,21 +3,20 @@ //Problem : Convert all first letters of words to UPPERCASE public class ConvertToUppercase { public static String getUppercase(String str) { - StringBuilder newStr = new StringBuilder(""); - char firstChar = Character.toUpperCase(str.charAt(0)); - newStr.append(firstChar); - for(int i=0; i