gruppe06-hufflepuff-projekt.../src/SystemOut.java

29 lines
522 B
Java
Raw Normal View History

import java.util.ArrayList;
2021-11-04 22:24:47 +01:00
public class SystemOut {
private boolean formatRaw;
private int columnWidth;
public void print(ArrayList text) {
if (formatRaw) {
for(int counter = 0; counter < text.size(); counter++) {
System.out.println("<" + counter + ">: <" + text.get(counter) + ">");
}
}
else {
2021-11-04 22:24:47 +01:00
}
}
2021-11-04 22:24:47 +01:00
public void formatRaw() {
formatRaw = true;
}
public void formatFix(int length) {
formatRaw = false;
columnWidth = length;
2021-11-04 22:24:47 +01:00
}
}