code: private static String[] split(String value, String delimeter) {
          StringTokenizer st = new StringTokenizer(value, delimeter);
          String[] res = new String[st.countTokens()];
          for (int i = 0; st.hasMoreTokens(); i++) {
              res[i] = st.nextToken();
          }
          return res;
      }
docs: todo: write a regexp one day