public static final int[] toIntArray(String s[]){
  int u[]=new int[s.length];
  for (int j=0; j < s.length; j++) {
    u[j]=Integer.parseInt(s[j]);
  }
  return u;
}

public static final int [ ] toIntArray ( String s [ ] ) { int u [ ] = new int [ s . length ] ; for ( int j = 0 ; j < s . length ; j ++ ) { u [ j ] = Integer . parseInt ( s [ j ] ) ; } return u ; }
convert eg [ " 1 " , " 2 " ] to [ 1 , 2 ]
