THE PACKAGE JAVA.UTIL
java.util.Vector
21.11
21.11.11
public final Object firstElement()
throws NoSuchElementException
If this
Vector
 is empty, a
NoSuchElementException
 is thrown. Otherwise, the
first item (the item at index
0
) is returned.
21.11.12
public final Object lastElement()
throws NoSuchElementException
If this
Vector
 is empty, a
NoSuchElementException
 is thrown. Otherwise, the
last item (the item at index
size() 1
) is returned.
21.11.13
public final void addElement(Object obj)
The size of this
Vector
 is increased by
1
 and
obj
 becomes the new last item.
21.11.14
public final void insertElementAt(Object obj, int index)
throws IndexOutOfBoundsException
The size of this
Vector
 is increased by
1
 and
obj
 becomes the new item at the
specified
index
. Any item in this
Vector
 that was previously at index
k
 is first
moved to index
k+1
 if and only if
k
 is not less than
index
.
21.11.15
public final boolean removeElement(Object obj)
If this
Vector
 contains an occurrence of
obj
, then the first (lowest indexed) such
occurrence is removed, as if by the method
removeElementAt
 ( 21.11.16), and
true
 is returned. If this
Vector
 contains no occurrence of
obj
, this
Vector
 is not
modified and
false
 is returned.
21.11.16
public final void removeElementAt(int index)
throws IndexOutOfBoundsException
The size of this
Vector
 is decreased by
1
 and the item at the specified
index
 is
removed from this
Vector
. Any item in this
Vector
 that was previously at index
k
 is first moved to index
k 1
 if and only if
k
 is greater than
index
.
657






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved