Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vector don´t work

Status
Not open for further replies.

vanhell

Programmer
Jan 28, 2002
15
0
0
AT
java.util.Vector.add(Object obj) don´t work
Do I miss something or are there some limits?
 
I assure you it works just fine as I and many Java Developers have used it extensively for years. Now if you explain what you percieve as "not working" then maybe one of us can help you.
 
your not trying to use it as a static method are you?
bruce21.jpg
 
Yes, after making it static it works fine, thx
 
I made the Vector static und now it works
yes, I know my english is very bad..
 
it would probably be better if you just instantiate your own vector e.g.

Vector myVector = new Vector(...)

and then you will be able to say myVector.add(object)

it is a much cleaner solution - I don't know if this is what you were doing originally, it isn't very clear.
 
What I wanted to say for 2 msg:
the problem is solved!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top