public static String [ ] stringToStringArray ( final String instr , final String delim ) throws NoSuchElementException , NumberFormatException { final StringTokenizer toker = new StringTokenizer ( instr , delim ) ; final String stringArray [ ] = new String [ toker . countTokens ( ) ] ; int i = 0 ; while ( toker . hasMoreTokens ( ) ) { stringArray [ i ++ ] = toker . nextToken ( ) ; } return stringArray ; }
Convert string to string array .