title: Java code making error
body: <p>I am trying to run the following java codes to make it look like this <img src="https://i.stack.imgur.com/xeXDR.png" alt="enter image description here"></p>
  
  <p>But I am having problem I am not sure what I am doing wrong. I have three class testFacebook, Facebookperson, and facebook. </p>
  
  <p>This is my code </p>
  
  <pre><code>public class testFacebook{
  
    // This is the testFacebook class
  
    public static void main (String[] argc){
        System.out.println();
        FacebookPerson p1 = new FacebookPerson("John");
        System.out.println(p1.getName()+ "' mood is "+ p1.getMood() +".");
        System.out.println(p1.getName()+ "' facebook content is "+ p1.getFacebookContent() +".");
  
        p1.setMood("happy");
        System.out.println(p1.getName()+ "' mood is "+ p1.getMood() +".");
        System.out.println(p1.getName()+ "' facebook content is "+ p1.getFacebookContent() +".");
  
        p1.setMood("sad");
        System.out.println(p1.getName()+ "' mood is "+ p1.getMood() +".");
        System.out.println(p1.getName()+ "' facebook content is "+ p1.getFacebookContent() +".");
    }
  
  }
  
  
  public class FacebookPerson{
  
    // This is the FacebookPerson class
    private String myname;
    private String mood;
    private Facebook fb;
  
    public FacebookPerson(String name){
        myname = name;
        mood ="initial mood";
        fb = new Facebook();
    }
  
    public void setMood(String newMood){
       mood = newMood;
       fb.setContent(mood);
    }
  
    public String getMood(){
        return mood;
    }
    public String getFacebookContent(){
       return content;
    }
    public String getName(){
      return name;
    }
  
  }
  
  public class Facebook{
  
     // This is the Facebook class
  
     private String content;
  
     public void setContent(String newContent){
      content = newContent+"_content";
     }
  
     public Facebook(){
      content = "initial_content";
     }
  
  
  
  }
  </code></pre>
  
  <p>But I am not sure what I am doing wrong...</p>