diff --git a/Assignment 2/src/ca/cosc3p91/a2/Main.java b/Assignment 2/src/ca/cosc3p91/a2/Main.java index e808fc1..b74c2e5 100644 --- a/Assignment 2/src/ca/cosc3p91/a2/Main.java +++ b/Assignment 2/src/ca/cosc3p91/a2/Main.java @@ -8,7 +8,7 @@ public class Main { public static void main(String[] args) { GameEngine engine = new GameEngine(); - Print test = new Print("Hello There", 2, 500); + Print test = new Print("Hello There", 2); test.addColumn(new Print.Column("I am value 1")); test.addColumn(new Print.Column("Super Value")); diff --git a/Assignment 2/src/ca/cosc3p91/a2/util/Print.java b/Assignment 2/src/ca/cosc3p91/a2/util/Print.java index e8dd54f..2d8ef59 100644 --- a/Assignment 2/src/ca/cosc3p91/a2/util/Print.java +++ b/Assignment 2/src/ca/cosc3p91/a2/util/Print.java @@ -36,18 +36,17 @@ public class Print { private final ArrayList rows = new ArrayList<>(); private final ArrayList columns = new ArrayList<>(); - private String tableName; - private int columnPadding; + private final String tableName; + private final int columnPadding; private int maxColumnWidth; - public Print(String tableName, int columnPadding, int maxColumnWidth){ + public Print(String tableName, int columnPadding){ this.tableName = tableName; this.columnPadding = columnPadding; - this.maxColumnWidth = maxColumnWidth; } public Print(){ - this("", 2, 500); + this("", 2); } private String createPadding(int amount) {