[Solved] Java code making error [closed]


There are two issues.

  1. Update the getFacebookContent() method in FacebookPerson to return the content using fb object as below.

     public String getFacebookContent(){
         return fb.getContent();
      }
    
  2. Implement getContent() method in Facebook as below:

     public String getContent(){
         return content;
      }
    

In addition, you may want to initialize content variable as Initial_Content instead of null as you are expecting in the output.

2

solved Java code making error [closed]