HateLace/app/src/main/java/hatelace/Program.java

16 lines
468 B
Java
Raw Normal View History

2024-04-16 07:19:34 +02:00
package hatelace;
2024-04-16 15:06:25 +02:00
import java.util.ArrayList;
2024-04-16 07:19:34 +02:00
2024-04-16 15:06:25 +02:00
// This is simply an intermediate class to comply with the specified API requirements.
2024-04-16 15:28:20 +02:00
public abstract class Program extends ArrayList<Instruction> {
public String toString() {
StringBuilder builder = new StringBuilder();
for (Instruction instruction : this) {
builder.append(instruction.toString());
builder.append("\n");
}
return builder.toString();
}
}