21.11
java.util.Vector
THE PACKAGE JAVA.UTIL
21.11.7
public final String toString()
This
Vector
 is represented in string form as a list of its items, enclosed in ASCII
square brackets and separated by the ASCII characters  
,
  (comma and space).
The
toString
 method is used to convert the items to strings; a null reference is
rendered as the string  
null
 .
The example fragment:
Vector v = new Vector();
v.addElement("Canberra");
v.addElement("Cancun");
v.addElement("Canandaigua");
System.out.println(v.toString());
produces the output:
[Canberra, Cancun, Canandaigua]
Overrides the
toString
 method of
Object
 ( 20.1.2).
21.11.8
public Object clone()
A copy of this
Vector
 is constructed and returned. The copy will contains a refer 
ence to a clone of the internal data array, not a reference to the original internal
data array of this
Vector
.
Overrides the
clone
 method of
Object
 ( 20.1.5).
21.11.9
public final Object elementAt(int index)
throws IndexOutOfBoundsException
The item of this
Vector
 with the specified
index
 is returned.
If the
index
 is negative or not less than the current size of this
Vector
, an
IndexOutOfBoundsException
 is thrown.
21.11.10
public final void setElementAt(Object obj, int index)
throws IndexOutOfBoundsException
The item of this
Vector
 with the specified
index
 is replaced with
obj
, so that
obj
is now the item at the specified
index
 within this
Vector
.
If the
index
 is negative or not less than the current size of this
Vector
, an
IndexOutOfBoundsException
 is thrown.
656






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