Hello Ace_Of_John
I don't see you using the "new" keyword. If you have some object, say A, and you modify it to be your "new" object and then add it to a vector, you actually keep adding the same object by reference. So, in affect, you have a vector of identical objects, A. To fix this you must create an instance of each Object. I'll assume that you are working with java.awt.Point objects. Fill your vector with Point instances, similar to this:
// Create vector
Vector<Point> points = new Vector<Point>();
for (int i = 0; i < 10; i++){
Point point = new Point(i, i * i);
points.add(point);
}
// Display vector
for (Point point : points){
System.out.println(point.toString());
}
This will give the output:
java.awt.Point[x=0,y=0]
java.awt.Point[x=1,y=1]
java.awt.Point[x=2,y=4]
java.awt.Point[x=3,y=9]
java.awt.Point[x=4,y=16]
java.awt.Point[x=5,y=25]
java.awt.Point[x=6,y=36]
java.awt.Point[x=7,y=49]
java.awt.Point[x=8,y=64]
java.awt.Point[x=9,y=81]