Java   View all facts   Glossary   Help
vector
Next kbTopWeb browser    UpkbTop    Previous kbTopvalue   

vector
subjectfact 
vectorcan be used to implement a queue or push-down stackadded by: JK, source: On To Java, 2001-10-19 11:38:15.0
can have new elements added to the front, back or middle without replacing existing elementsadded by: JK, source: On To Java, 2001-10-19 11:38:15.0
can only store reference types, not primitive typesadded by: JK, source: On To Java, 2001-10-19 11:38:15.0
can return the number of elements it contains using the size() method as in:
vectorName.size()
added by: JK, source: On To Java, 2001-10-19 11:38:15.0
does not have a fixed size like an arrayadded by: JK, source: On To Java, 2001-10-19 11:38:15.0
has
//Declare a vector and create an instance
Vector v = new Vector();
added by: JK, source: On To Java, 2001-10-19 11:38:15.0
is an instance of Vector classadded by: JK, 2001-10-19 11:38:15.0
is a subtopic of Collections2001-10-19 11:38:15.0
is a kind of kbTopadded by: JK, source: On To Java, 2001-10-19 11:38:15.0
see also Vector classadded by: JK, source: On To Java, 2001-10-19 11:38:15.0