class Document { // @@ Fill me } // This class is the driver for the Document class public class Document_Tester { public static void main (String[] args) { // Create the first document // (using the default constructor) Document document1 = new Document (); // Set the pages document1.setPages (100); // Set the figures document1.setFigures (34); // Set the tables document1.setTables (3); // Print the first document System.out.println (); System.out.println ("Document 1: " + document1); System.out.println (); // Create the second document // (using constructor which takes pages, figures, and tables) Document document2 = new Document (200, 10, 15); // Print the second document System.out.println (); System.out.println ("Document 2: " + document2); System.out.println (); /* // Uncomment this for part two // Print the first document's readability System.out.println (); System.out.println ("Document 1's readability: " + document1.readability ()); System.out.println (); // Print the second document's readability System.out.println (); System.out.println ("Document 2's readability: " + document2.readability ()); System.out.println (); // End of part two */ /* // Uncomment this for part three // Create the third document // (by appending the first and second documents) Document document3 = Document.append (document1, document2); // Print the third document and its readability System.out.println (); System.out.println ("Document 3: " + document3); System.out.println ("Document 3's readability: " + document3.readability ()); System.out.println (); // End of part three */ } }