Help required for vector

i am using vector to save some objects.

i have add button in my application. when i add anything to vector it gets added up at index 1. then i close my application and when i again open it and try to add it, the object replaces the 1st object. i want that it should not replace the 1st object but should get added up at index 2.

plz help me as i new to vector n don't have much idea about it.

thanks in advance.

[437 byte] By [mansi_b85a] at [2007-11-27 10:37:53]
# 1

Here's the API docs for the Vector class:

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html

all it's methods are described in there.

prometheuzza at 2007-7-28 18:51:06 > top of Java-index,Java Essentials,Java Programming...