diff --git a/java/string_calculator/src/main/java/StringCalculator.java b/java/string_calculator/src/main/java/StringCalculator.java index cf46fb8..21a4d39 100644 --- a/java/string_calculator/src/main/java/StringCalculator.java +++ b/java/string_calculator/src/main/java/StringCalculator.java @@ -14,7 +14,7 @@ private String[] extractNumbers(String s) { } private String extractCustomSeparator(String s) { - return "\n" + s.charAt(2); + return Character.toString(s.charAt(2)); } private String removeSeparatorDefinition(String s) {