question: private String createDashArrayString ( List < Float > dashesArray ) { StringBuilder sb = new StringBuilder ( ) ; if ( dashesArray != null ) { int index = 0 ; for ( Float value : dashesArray ) { String str = Float . toString ( value ) ; if ( str . endsWith ( ".0" ) ) { sb . append ( value . intValue ( ) ) ; } else { sb . append ( value ) ; } if ( index < dashesArray . size ( ) - 1 ) { sb . append ( " " ) ; } index ++ ; } } return sb . toString ( ) ; }
target:  Creates the dash array string.