question: public static float [ ] stringListToNumeric ( List < String > scoreList ) throws NumberFormatException { float [ ] scores = new float [ scoreList . size ( ) ] ; int scoreId = 0 ; for ( String score : scoreList ) { float floatScore = ( float ) Double . parseDouble ( score ) ; if ( Float . isNaN ( floatScore ) ) { throw new NumberFormatException ( "Unparseable number: " + score ) ; } scores [ scoreId ++ ] = floatScore ; } return scores ; }
target:  Converts a string list of scores to float.