public static int[] parseIntArray(int[] dest,String value){
  String[] parts=value.split(",");
  if (dest == null) {
    dest=new int[parts.length];
  }
  for (int i=0; i < dest.length; i++) {
    dest[i]=Integer.parseInt(parts[i]);
  }
  return dest;
}

public static int [ ] parseIntArray ( int [ ] dest , String value ) { String [ ] parts = value . split ( "," ) ; if ( dest == null ) { dest = new int [ parts . length ] ; } for ( int i = 0 ; i < dest . length ; i ++ ) { dest [ i ] = Integer . parseInt ( parts [ i ] ) ; } return dest ; }
parsed the comma separated string into a int array .
