diff --git a/data/backup/names.txt b/data/backup/names.txt index 268c04cf59..22d8899e32 100644 --- a/data/backup/names.txt +++ b/data/backup/names.txt @@ -4,3 +4,4 @@ christmas + diff --git a/src/main/java/seedu/financeit/parser/ParamsParser.java b/src/main/java/seedu/financeit/parser/ParamsParser.java index 064113941f..0ee0a14b2a 100644 --- a/src/main/java/seedu/financeit/parser/ParamsParser.java +++ b/src/main/java/seedu/financeit/parser/ParamsParser.java @@ -25,22 +25,18 @@ public static ParamsParser getInstance() { public String getSeparator(String input) { //Matcher matches , so (matched index + 1) gives the separator int separatorIndex = matcher.start() + 1; - System.out.println(input.charAt(separatorIndex)); return String.valueOf(input.charAt(separatorIndex)); } public String getNextParamType(String input) { - System.out.println("input1: " + input); //Matcher gives index of space before the param, so (matched index + 1) gives the separator int separatorIndex = -1; try { separatorIndex = RegexMatcher.paramMatcher(input).start(); - System.out.println("proces: " + input + ", " + separatorIndex); } catch (IllegalStateException e) { return input; } int nextSpaceIndex = input.indexOf(" ", separatorIndex + 1); - System.out.println("output: " + input.substring(separatorIndex, nextSpaceIndex)); return input.substring(separatorIndex, nextSpaceIndex); } @@ -61,11 +57,9 @@ public HashMap parseParams(String paramSubstring) { String[] buffer; String paramArgument = ""; boolean paramArgumentExist; - System.out.println("input: " + paramSubstring); do { paramSubstring += " "; paramArgument = ""; - System.out.println("paramsubs: " + paramSubstring); //Separate into [paramType, rest of string] buffer = paramSubstring.split(" ", 2); @@ -106,8 +100,6 @@ public HashMap parseParams(String paramSubstring) { String separator = getNextParamType(paramSubstring); buffer = paramSubstring.split(separator, 2); buffer[1] = separator + buffer[1]; - System.out.println("buffer0: " + buffer[0]); - System.out.println("buffer1: " + buffer[1]); paramArgument = buffer[0].trim(); paramSubstring = buffer[1].trim();