Autoboxing is taking place, converting your int to an Integer.
Use: Vector<Integer> vector = new Vector<Integer>(); where the Integer is specified rather than assumed
or: Vector<Integer> vector =...