### Source code for DisastersExample.java:

>     import java.util.*;

>     public class DisastersExample
>     {
>     	public static void main(String args[])
>     	{
>     		// DisastersExample
>     		Vector disasters = new Vector();
>     		disasters.add("earthquake");
>     		disasters.add("flood");
>     		disasters.add("tornado");
>     		disasters.add("macarena");
>     		Enumeration e1 = disasters.elements();
>     		String disastersArray[] = new String[disasters.size()];
>     		disastersArray[0] = (String) e1.nextElement();
>     		disastersArray[1] = (String) e1.nextElement();
>     		disastersArray[2] = (String) e1.nextElement();
>     		disastersArray[3] = (String) e1.nextElement();
>     		System.out.println("disasters Vector = " + disasters);
>     		System.out.println("disastersArray = " + disastersArray);
>     	}
>     }

### Output from DisastersExample.java:

    disasters Vector = [earthquake, flood, tornado, macarena]
    disastersArray = [Ljava.lang.String;@918676

--- Output Ends ---

#### NOTE:

You are reading previously generated output. You are not currently running the DisastersExample application at the momement. You need to compile and run the source code first.

#### To run this program:

`
- javac DisastersExample.java
- java DisastersExample
`

Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR