diff --git a/src/seedu/addressbook/AddressBook.java b/src/seedu/addressbook/AddressBook.java index 5a158b67..3cf72052 100644 --- a/src/seedu/addressbook/AddressBook.java +++ b/src/seedu/addressbook/AddressBook.java @@ -1164,4 +1164,14 @@ private static ArrayList splitByWhitespace(String toSplit) { return new ArrayList<>(Arrays.asList(toSplit.trim().split("\\s+"))); } + /** + * Splits a source string into the list of substrings that were separated by string separator. + * + * @param toSplit source string + * @param separator separator string + * @return split by separator + */ + private static ArrayList splitBySeparator(String toSplit, String separator) { + return new ArrayList<>(Arrays.asList(toSplit.trim().split(separator))); + } } \ No newline at end of file