1/**
2 * Copyright(C) 1998
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : January 1, 1998.
11 * @authorĀ : Salih Yurttas.
12 */
13
14
15import java.util.*;
16
17public class T00 extends Object {
18
19 public static void main(String[] args) {
20 Vector v = new Vector();
21
22 String[] word;
23
24 v.addElement("Texas");
25 v.addElement("A&M");
26 v.addElement("University");
27
28 synchronized(v) {
29 int size = v.size();
30 word = new String[size];
31 for(int i=0; i<size; i++)
32 word[i]=(String)v.elementAt(i);
33 }
34
35 int l = word.length;
36
37 System.out.println("word.length = "+
38 l);
39
40 for(int i=0; i<l; i++)
41 System.out.println(word[i]);
42 }
43
44}