posted 17 years ago
Keith Lynn has told you that items added to a Vector are added to the end. So they are retained in the order of addition. To get them in order, use the standard methods
Iterator,for-each loopfor loop.If this is for an assignment, use an Iterator.
As Keith Lynn has suggested, if you don't need synchronization, you might be better using an ArrayList.