private static ArrayList<Integer> loadIntegerArray(Resources r,int resNum){
  int[] vals=r.getIntArray(resNum);
  int size=vals.length;
  ArrayList<Integer> list=new ArrayList<Integer>(size);
  for (int i=0; i < size; i++) {
    list.add(vals[i]);
  }
  return list;
}

private static ArrayList < Integer > loadIntegerArray ( Resources r , int resNum ) { int [ ] vals = r . getIntArray ( resNum ) ; int size = vals . length ; ArrayList < Integer > list = new ArrayList < Integer > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { list . add ( vals [ i ] ) ; } return list ; }
loads an integer array asset into a list .
