question: private float [ ] convertDashListToArray ( List < Float > dashList ) { if ( dashList == null ) { return null ; } float [ ] dashes = new float [ dashList . size ( ) ] ; int i = 0 ; for ( Float f : dashList ) { dashes [ i ++ ] = ( f != null ? f : Float . NaN ) ; } return dashes ; }
target:  Convert dash list to array.