Recursive AssignmentObjective: Reclusively display messages in a discussion forum with proper indentation.Each message in an online forum is captured with a unique message ID, a parent ID, and the...

1 answer below »
Recursive AssignmentObjective: Reclusively display messages in a discussion forum with proper indentation.Each message in an online forum is captured with a unique message ID, a parent ID, and the text of themessage. The parent ID is the message ID of another message that a message is replying to. The firstmessage will have a parent ID of 0 indicating that it is not replying to any message, i.e. it is a newdiscussion. There could be more than one discussion in a forum.All messages are stored in a file in the following format: messageID|parentID|text, where each messageis a line and “|” is the delimiter to separate the fields.You are to:1. Implement appropriate class or classes to encapsulate the messages.2. Implement an application where the messages are loaded from file “msg.data” and displayed ina nesting hierarchy structure that show the relationship of the messages (each reply message isdisplayed on a separated line and indented by 2 white spaces relatively to the message beingreplied to)3. [bonus] provide options for the user to create a new discussion and reply to a message. Thesenew information must be added to the file containing the messages when the user exists yourapplication
Answered Same DayApr 26, 2021

Answer To: Recursive AssignmentObjective: Reclusively display messages in a discussion forum with proper...

Pulkit answered on Apr 27 2021
161 Votes
recursive/.idea/.gitignore
# Default ignored files
/shelf/
/workspace.xml
recursive/.idea/misc.x
ml




recursive/.idea/modules.xml






recursive/.idea/workspace.xml











































1619500645893


1619500645893



recursive/output.PNG
recursive/recursive.iml









recursive/src/Main.class
public synchronized class Main {
public void Main();
public static void main(String[]);
public static java.util.List...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here