title: How do I properly display the data from an object within an object?
body: <p>Creating a linked list that has a class, Notes, that's basically an object that contains NotePages, another class, that contains Strings that are "title" and description. The class Notes extends another class which is the LinkedList class mentioned earlier. The problem is that when I try printing out the Notes with a note page in it, the display comes out like this: </p>
  
  <pre><code>Note one 
       []
  </code></pre>
  
  <p>Assigning what to display in the object looks like: </p>
  
  <pre><code>NotePages page = new NotePages("title one", "Description");
  Notes note = new Notes("Note one", page);
  
  note.printNote();
  </code></pre>
  
  <p>I've tried creating other methods such as a String method to try and return the page properly to no avail.</p>
  
  <p>Here's my code for the Notes object.</p>
  
  <pre><code>public class Notes extends LinkedList{
  
  private String title;
  private LinkedList&lt;NotePages&gt; pages;
  
  public String getTitle() {
      return title;
  }
  
  public void setTitle(String title) {
      this.title = title;
  }
  
  public LinkedList&lt;NotePages&gt; getPages() {
      return pages;
  }
  
  public void setPages(LinkedList&lt;NotePages&gt; pages) {
      this.pages= pages;
  }
  
  public Notes(String title, LinkedList&lt;NotePages&gt; pages) {
      this.title = title;
      this.pages= pages;
  }
  
  void printNote(){
      System.out.println(getTitle()+"\n"+getPages());
  }
  }
  </code></pre>
  
  <p>I need the display to output something closer to this: </p>
  
  <pre><code>Note one 
      title one
      description
  </code></pre>
  
  <p>Here is the NotePages Class: </p>
  
  <pre><code>import java.awt.*;
  
  public class NotePages {
  
  private String title;
  private String description;
  private Color label;
  
  public String getTitle() {
      return title;
  }
  
  public void setTitle(String title) {
      this.title = title;
  }
  
  public String getDescription() {
      return description;
  }
  
  public void setDescription(String description) {
      this.description = description;
  }
  
  public Color getLabel() {
      return label;
  }
  
  public void setLabel(Color label) {
      this.label = label;
  }
  
  NotePages(String title, String description, Color label){
      this.title = title;
      this.description = description;
      this.label = label;
  }
  
  NotePages(String title,String description){
      this.title = title;
      this.description = description;
  }
  
  void printPage(){
      System.out.println(getTitle() + "\n     "+ getDescription());
  }
  
  }
  </code></pre>