title: Java println method from another class
body: <p>I'm having a bit of a problem with a method from another class</p>
  
  <p>The method i want to is:</p>
  
  <pre><code>/**
   * Prints out information about the owner
   */
  public void printOwnerInfo()
  {
      System.out.println("Information about the owner of the forest");
      System.out.println("Name: " + name);
      System.out.println("Adresse: " + adresse);
      System.out.println("Phone Number: " + phone);
  }
  </code></pre>
  
  <p>I would like to have this information printed along side:</p>
  
  <pre><code>/**
   * Prints out information about the forest
   */
  public void printForestInfo()
  {
      System.out.println("Information about forest: " + name);
      System.out.println("Location: " + location);
      System.out.println("Square meters: " + squareMeters);
      System.out.println("Price per square meter: " + price + " euro");
      System.out.println("Price for the forest: " + (squareMeters * price) + " euro");
      System.out.println.forestOwner.printOwnerInfo();
  }
  </code></pre>
  
  <p>I've declared the "Owner" class in the "Forest" field as:</p>
  
  <pre><code>public Owner forestOwner;
  </code></pre>
  
  <p>But I can't seem to get it to print out the Owner information with the Forest information.
  they work fine each on there own.</p>