diff --git a/src/main/java/com/project/my/example/Main.java b/src/main/java/com/project/my/example/Main.java index c198480..0fa986c 100644 --- a/src/main/java/com/project/my/example/Main.java +++ b/src/main/java/com/project/my/example/Main.java @@ -7,6 +7,9 @@ public class Main { public static void main(String args[]) { Table table = Table.create("Hello World"); + + // We changed the table.toString() method to return twice the output, see + // Relation.java System.out.println(table.toString()); } diff --git a/src/main/java/tech/tablesaw/table/Relation.java b/src/main/java/tech/tablesaw/table/Relation.java index a8ca8db..3e51707 100644 --- a/src/main/java/tech/tablesaw/table/Relation.java +++ b/src/main/java/tech/tablesaw/table/Relation.java @@ -256,7 +256,9 @@ public int[] colWidths() { */ @Override public String toString() { - return print(); + String result = print(); + result = result + "\n" + result; + return result; // ! place breakpoint here and debug Main.java } /** Returns a 'pretty-printed' string representation of this entire relation. */