Vector : Java Glossary

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
// 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

Oracle’s Javadoc on Vector class : available:

CMP homejump to top

available on the web at:

http://mindprod.com/jgloss/vector.html
  

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\vector.html
logo
Please email your , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, especially when sending an ad-hominem attack, a rant composed mainly of obscenities or a death threat, please quote the offending passage and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. I can’t very well fix erroneous or ambiguous text if I can’t find it.
Blog
IP:[65.110.21.43]
Your face IP:[107.22.127.92]
You are visitor number 47,490.