Vector : Java Glossary
home V words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
Vector
An array that automatically grows. Now replaced by ArrayList. You would only use Vector only for compatibility with Java 1.1.

Vector.add( elt ) automatically tacks on the end.

Thread Safety Vectors In Mathematics
Old and New method names Learning More
ArrayIndexOutOfBoundsException Links
Vectors In Graphics

Thread Safety

To get the thread safety of Vector in ArrayList wrap it like this:
// making an ArrayList threadsafe
ArrayList a = new ArrayList( 100 );
Collection threadSafeList = Collections.synchronizedCollection( a );

Old and New method names

ArrayIndexOutOfBoundsException

Vector will often give you ArrayIndexOutOfBoundsException. There are many ways to generate one.

Vectors In Graphics

In the context of graphic image processing there are two basic types: raster graphics and vector graphics. Raster graphics store the colour of a dot called a pixel for every tiny cell of the image. Vector graphics store the begin and end points of lines used to construct an image at any scale. Vector graphics also typically handle Bezier curves, which are curves that go through sample points, with the direction and curvature adjusted at each point to smooth the curve.

Vectors In Mathematics

In mathematics, a vector is a something with both a quanity and a direction, e.g. velocity or a force. A vector is also a tuple of numbers. Three numbers can be used to represent a direction in 3D. four numbers can represent a point in space-time.

Learning More

Sun’s Javadoc on the Vector class : available:

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 30,140. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/vector.html J:\mindprod\jgloss\vector.html