00:01
In this question, we have to write a code in java.
00:03
So let us see what we have to do in this question.
00:09
So we have been asked to implement.
00:13
We have to we have been asked the implementation of a task management application.
00:17
So the application should allow the users to perform various applications on array that store information about tasks.
00:23
So the response the functionalities we will be using will be populate arrays.
00:34
So users should be able to add tasks to the arrays and including developer names task names task id task durations.
00:42
So for that then we will be we will be using display tasks with status done.
00:48
So for that we will be using display tasks to the state is done.
01:00
The user should be able to view the developer then task name and task with the status that is done status.
01:08
So for that then we will be using the display the developer.
01:18
So so we display the developer and the duration of the task with the longest duration that is there.
01:32
So users should be able to find and display the developer and duration of the task with the longest duration that is there.
01:40
Then we have to search for a task by the task name then user should be able to search with the task name and everything that is there then we have to delete a task and display a task.
01:56
So we have to delete task and then lastly we have to display the task.
02:08
So as you can see, these are certain things that we are going to follow while writing a program.
02:14
So let us have a look at the basic java compiler that we will be using to write this program.
02:20
So firstly we will be initializing the basic java class will be importing it then we are going to start by importing the necessary classes that is including the array list from the java util package which provides a dynamic array implementation that is there.
02:43
So as we can see here, we have used the array list which gives the necessary classes over here.
02:57
So we defined a task manager class which will encapsulate the task management functionalities and inside a task manager class.
03:06
We declare five private array lists over here that these are list variables that are developer list or then task name list task id list task duration list and task status list.
03:18
So these lists will store the information related to developers tasks names task id task duration and task statuses.
03:26
So now we will be using a constructor that is task manager.
03:31
So that is here.
03:34
So this we initialize the array list of variables then we will introduce the add tasks method over here.
03:47
So we will be using certain tasks here like this.
03:53
So as you can see that the display task method over here, i have given the add task method over here.
04:05
So now as you can see this add task method, it allows user to populate the arrays by adding a new task and it takes parameters for developer name task name and task id.
04:20
So the task duration and task status that is there it can be seen here and it simply adds the values to the respective list that is there.
04:32
Now we will see the other tasks that is done task then display task search delete and display...