private List<Float> createDashArray(String dashString){
  String[] dashes=dashString.split(" ");
  List<Float> floatDashArray=new ArrayList<Float>();
  for (  String dashValue : dashes) {
    try {
      floatDashArray.add(Float.parseFloat(dashValue));
    }
 catch (    NumberFormatException e) {
      return null;
    }
  }
  return floatDashArray;
}

private List < Float > createDashArray ( String dashString ) { String [ ] dashes = dashString . split ( " " ) ; List < Float > floatDashArray = new ArrayList < Float > ( ) ; for ( String dashValue : dashes ) { try { floatDashArray . add ( Float . parseFloat ( dashValue ) ) ; } catch ( NumberFormatException e ) { return null ; } } return floatDashArray ; }
creates the dash array .
