code: public static String[] split(String string, char delimiter) {
          int delimeterCount = 0;
          int start = 0;
          int end;
          while ((end = string.indexOf(delimiter, start)) != -1) {
              delimeterCount++;
              start = end + 1;
          }
  
          String[] result = new String[delimeterCount + 1];
          start = 0;
          for (int i = 0; i < delimeterCount; i++) {
              end = string.indexOf(delimiter, start);
              result[i] = string.substring(start, end);
              start = end + 1;
          }
          result[delimeterCount] = string.substring(start, string.length());
          return result;
      }
docs: Splits a String based on a single character, which is usually faster than regex-based String.split().
  NOTE: split("AA;BB;;", ';') == ["AA", "BB", "", ""], this may be different from String.split()