5:30 pm - Sunday August 19, 2018

Vector Example Program for add(E e),

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@AUTHOR:candid java.com
@DESCRIPTION: Inserts the specified element at the specified position in this Vector.
*/
import java.util.Vector;
public class Add
{
public static void main(String args[])
 {
 Vector v = new Vector();
 v.add("Hai");
  v.add("Hai");
  String s = v.get(0);
  System.out.println(s);
  }
  }

Output:
Hai

Filed in: Z-A All Java Codes

Comments are closed.