code: private static List<String> split( String str,
                                         String splitter ) {
          StringTokenizer tokens = new StringTokenizer(str, splitter);
          ArrayList<String> l = new ArrayList<>(tokens.countTokens());
          while (tokens.hasMoreTokens()) {
              l.add(tokens.nextToken());
          }
          return l;
      }
docs: Split a string into pieces based on delimiters. Similar to the perl function of the same name. The delimiters are not
  included in the returned strings.
  
  @param str Full string
  @param splitter Characters to split on
  @return List of String pieces from full string