// A Vector object can store several objects of different types. // Example from the first edition (p.234) import java.util.Vector; class ZZ_top { public static void main (String[] args) { Vector song = new Vector (); String name = new String ("ZZ Top's Greatest Hits"); Integer track = new Integer (6); String title = new String ("Cheap Sunglasses"); Double price = new Double (15.95); Vector authors = new Vector (2); authors.addElement ("Gibbons"); authors.addElement ("Hill"); song.addElement (track); song.addElement (title); song.addElement (authors); song.addElement (price); song.insertElementAt (name, 0); System.out.println (song); } }