Implement the Chat Handler Class
Implement the class to handle the chat list implementation using a hashmap and linked list.
We'll cover the following...
We'll cover the following...
Introduction
From this lesson onwards, we are going to start implementing the project. We'll be following the steps mentioned below:
Create a class to construct our chat list data structure.
Implement a function to get the current time and attach it to every new message.
Write a function to create a node to store the user's name, image, and message.
Write a function to get a node from the linked list using the hashmap and the user's id.
Write a utility function to handle the scenario where a new message is generated.
Write a utility function to handle the scenario where a message is deleted.
Before starting the implementation, let's first make sure we understand how ...