List<String> (final String string, final String delim) { final List<String> tokens = new ArrayList<>(); for (StringTokenizer tokenizer = new StringTokenizer(string, delim); tokenizer.hasMoreTokens(); ) { tokens.add(tokenizer.nextToken()); } return tokens; }