3:42 pm - Wednesday November 18, 2240

Tag Archives: Clear in vector

Vector Example Program for clear()

/** @ AUTHOR:Candid java.com @ DESCRIPTION:coding for clear the elements in the vector */ import java.util.Vector; class Clear { public static void main(String[] args) { Vector v = new Vector(); v.add("One"); v.add("Two"); v.add("Three"); v.add("Four"); v.clear(); System.out.println("Size...