code: private String [] split (final String string, final String delim)
    {
      final List <String> result = new ArrayList <> ();
  
      final StringTokenizer stringTokenizer = new StringTokenizer (string, delim);
      while (stringTokenizer.hasMoreTokens ())
      {
        result.add (stringTokenizer.nextToken ());
      }
  
      return result.toArray (new String [result.size ()]);
    }
docs: Helper method to split the given string by the given delimiter.