Skip to content

Commit

Permalink
remove "\n" and cast char to string
Browse files Browse the repository at this point in the history
  • Loading branch information
mklose committed Nov 25, 2011
1 parent c76bc43 commit c580747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/string_calculator/src/main/java/StringCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c580747

Please sign in to comment.