code: public static void splitLine(final String line, final char delimiter,
        final String[] splitted) {
      int idxComma, idxToken = 0, fromIndex = 0;
      while ((idxComma = line.indexOf(delimiter, fromIndex)) != -1) {
        splitted[idxToken++] = line.substring(fromIndex, idxComma);
        fromIndex = idxComma + 1;
      }
      splitted[idxToken] = line.substring(fromIndex);
    }
docs: Fast line splitting with a separator, typically a tab or space character.
  
  @param line
  the line to be splitted
  @param delimiter
  the delimiter
  @param splitted
  the array containing the splitted tokens for each line