package hatelace; import java.util.ArrayList; // This is simply an intermediate class to comply with the specified API requirements. public abstract class Program extends ArrayList { public String toString() { StringBuilder builder = new StringBuilder(); for (Instruction instruction : this) { builder.append(instruction.toString()); builder.append("\n"); } return builder.toString(); } }