Link to home
Start Free TrialLog in
Avatar of DoughBoy
DoughBoy

asked on

vector of strings

Hi All,
I would like to create two different vectors. One vector will hold integers and the other will hold strings.

I would like to add to the size of each vector as I see more elements worth saving.

Could someone please give me sample code how to do this and some good web sites that give lots of java sample code? Sun is too theoretical.

TIA DoughBoy
ASKER CERTIFIED SOLUTION
Avatar of kylar
kylar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DoughBoy
DoughBoy

ASKER

Thanks Kylar,
BTW, do you have any recommended good web sites?
What method gets the new size of the vector?
I use the Java API docs almost exclusively. They are availible for download at sun's site.. or can be viewed online at

http://java.sun.com/j2se/1.3/docs/api/

Look up Vector and you'll see under method description the call size() that returns the size of the vector.

As to good websites, I usually just search on google.com if there's something I specifically need. If you're just getting started, Bruce Eckel's book 'Thinking In Java' is very very good, and availible online.. do a search for it.



Cheers,
Kylar