question: public Hyperpoint ( String s ) { ArrayList < String > al = new ArrayList < String > ( ) ; StringTokenizer st = new StringTokenizer ( s , "," ) ; while ( st . hasMoreTokens ( ) ) { al . add ( st . nextToken ( ) ) ; } dimensionality = al . size ( ) ; values = new double [ dimensionality ] ; for ( int i = 1 ; i <= dimensionality ; i ++ ) { values [ i - 1 ] = Double . valueOf ( al . get ( i - 1 ) ) ; } }
target:  Construct Hyperpoint when given a comma-separated string of doubles. <p> The number of dimensions in the resulting Hyperpoint is based on the number of values in the string.