private static int[] versionToIntArray(String version){
  String[] split=version.split("\\.");
  int[] intVersion=new int[split.length];
  for (int i=0; i < split.length; i++) {
    String part=split[i];
    int partI=0;
    try {
      partI=Integer.parseInt(part);
    }
 catch (    NumberFormatException ex) {
    }
    intVersion[i]=partI;
  }
  return intVersion;
}

private static int [ ] versionToIntArray ( String version ) { String [ ] split = version . split ( "\\." ) ; int [ ] intVersion = new int [ split . length ] ; for ( int i = 0 ; i < split . length ; i ++ ) { String part = split [ i ] ; int partI = 0 ; try { partI = Integer . parseInt ( part ) ; } catch ( NumberFormatException ex ) { } intVersion [ i ] = partI ; } return intVersion ; }
convert a version in the form " x . y . z " ( any length ) into an array of integers " [ x , y , z ] " .
