StringTokenizer ( ) : Extracts the number at key c_str ( ) : Type cast String to char *
StringTokenizer st = new StringTokenizer ( str ) ; int count = 1 ; while ( st . hasMoreTokens ( ) && K > 0 ) { if ( count == K ) System . out . println ( st . nextToken ( ) ) ; count ++ ; st . nextToken ( ) ; } }