code: public void add(Collection<String> lines) {
          for (String line : lines) {
              buffer.add(line);
              terminal.println(line);
          }
      }
docs: Add new lines to the end of the buffer, and print them out.
  
  @param lines The lines to add.