@CheckReturnValue @Nonnull @Deprecated static public String[] split(@Nonnull String input,@Nonnull String divider){
  int size=0;
  String temp=input;
  while (temp.length() > 0) {
    size++;
    int index=temp.indexOf(divider);
    if (index < 0) {
      break;
    }
    temp=temp.substring(index + divider.length());
    if (temp.length() == 0) {
      size++;
      break;
    }
  }
  String[] result=new String[size];
  temp=input;
  size=0;
  while (temp.length() > 0) {
    int index=temp.indexOf(divider);
    if (index < 0) {
      break;
    }
    result[size]=temp.substring(0,index);
    temp=temp.substring(index + divider.length());
    size++;
  }
  result[size]=temp;
  return result;
}

@ CheckReturnValue @ Nonnull @ Deprecated static public String [ ] split ( @ Nonnull String input , @ Nonnull String divider ) { int size = 0 ; String temp = input ; while ( temp . length ( ) > 0 ) { size ++ ; int index = temp . indexOf ( divider ) ; if ( index < 0 ) { break ; } temp = temp . substring ( index + divider . length ( ) ) ; if ( temp . length ( ) == 0 ) { size ++ ; break ; } } String [ ] result = new String [ size ] ; temp = input ; size = 0 ; while ( temp . length ( ) > 0 ) { int index = temp . indexOf ( divider ) ; if ( index < 0 ) { break ; } result [ size ] = temp . substring ( 0 , index ) ; temp = temp . substring ( index + divider . length ( ) ) ; size ++ ; } result [ size ] = temp ; return result ; }
split a string into an array of strings , at a particular divider . this is similar to the new string . split method , except that this does not provide regular expression handling ; the divider string is just a string .
