/** * Write a description of class FirstOutput here. * * @author (your name) * @version (a version number or a date) */ public class FirstOutput { SecondOutput second; FileOut fout; /** * Constructor for objects of class FirstOutput */ public FirstOutput() { fout = new FileOut("fout.txt"); second = new SecondOutput(); second.start(); begin(); } /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public void begin() { for(int i = 0; i<1000; i++) { fout.writer("Hunter"); } } public static void main(String [] args) { new FirstOutput(); } }