Fix: ASCII Builder

This commit is contained in:
rubenpirreram
2026-04-25 18:44:40 +02:00
parent e1386287b2
commit 79aaaf6f33
@@ -4,12 +4,12 @@ import java.util.*;
// Helper generale per costruire tabelle ASCII // Helper generale per costruire tabelle ASCII
public class AsciiTable { public class AsciiTable {
private final BorderStyle s; private final BorderStyle s;
private final int cols, colWidth; private final int cols;
private final List<List<String>> rows = new ArrayList<>(); private final List<List<String>> rows = new ArrayList<>();
private final List<Integer> separators = new ArrayList<>(); private final List<Integer> separators = new ArrayList<>();
public AsciiTable(BorderStyle s, int cols, int colWidth) { public AsciiTable(BorderStyle s, int cols) {
this.s = s; this.cols = cols; this.colWidth = colWidth; this.s = s; this.cols = cols;
} }
public void addRow(String... cells) { rows.add(Arrays.asList(cells)); } public void addRow(String... cells) { rows.add(Arrays.asList(cells)); }