FileDocCategorySizeDatePackage
ListOfNumbersDeclared.javaAPI DocExample636Tue Dec 12 18:57:38 GMT 2000None

ListOfNumbersDeclared

public class ListOfNumbersDeclared extends Object

Fields Summary
private Vector
victor
private static final int
size
Constructors Summary
public ListOfNumbersDeclared()


       
        victor = new Vector(size);
        for (int i = 0; i < size; i++)
            victor.addElement(new Integer(i));
    
Methods Summary
public voidwriteList()

        PrintStream out = new PrintStream(
			      new FileOutputStream("OutFile.txt"));
        
        for (int i = 0; i < size; i++)
            out.println("Value at: " + i + " = " + victor.elementAt(i));

        out.close();