/** * the main method doing the work. draws everyting. * * @return the formatted table. */ @Override public String toString() { final StringBuilder builder = new StringBuilder(); for (int i = 0; i < rows.size(); i++) { final AbstractTabularComponent myObj = rows.get(i); builder.append(myObj.draw()); } return builder.toString(); }