package recycledNumbers;


public class OutputData {

	private int[] Steps;


	public int[] getSteps() {
		return Steps;
	}


	public OutputData(int [] Steps){
		this.Steps = Steps;
		
		for(int i=0;i<this.Steps.length;i++){
			System.out.println("Test "+(i+1)+": "+Steps[i]);
		}
	}
	
}

package inout;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author Hasier Rodriguez
 */
public final class Out {

    private Out() {
    }

    public static void write(String path, int n, String result) throws FileNotFoundException, IOException {
        File f = new File(path);
        BufferedWriter br = new BufferedWriter(new FileWriter(f, true));
        String out = "Case #" + n + ": " + result;
        br.write(out);
        System.out.println(out);
        br.newLine();
        br.flush();
        br.close();
    }
}
