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();
}

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 ( ) ; }
creates the dash array string .
