0:00
Guys welcome back to java tutorials. In today's video we will do one more exercise
0:07
I have opened a lot of useless tabs, let me close them
0:11
And here we will make one more file based on our videos
0:16
So our video number is 58 here, which means we will make it according to 51st video
0:24
So I will make a new file and name it cwh-51-exercise4. And our java class is ready
0:34
I will press shift-enter and write main. And by writing main my main method will come here
0:39
And for now I will write problem statement. And our problem statement is that you have to implement a library using java class library
0:55
You have to make a class named library and you have to implement a library
1:00
And the functions that you have to implement in this library. Let me tell you what methods should be there
1:08
Issue book, borrow book. To do this you should have methods. In fact I will write the name of the method here
1:19
Issue book, return book. If someone is taking the book, then he will return it
1:29
With the help of this method, he will issue the book. With the help of this method, he will return the book
1:36
And after that if I talk to you, then we will put methods and properties
1:43
And what will be the properties in it? There will be an array to store the available books
1:52
And an array to store the issued books. So I am writing this thing like this
1:59
And you guys do it according to you. So basically what happened is that anyone can issue books from this library
2:07
Can return. And you have to make a method of show available books
2:12
And along with that, you can implement the rest of the methods of the library
2:20
So basically you have understood, a rough idea has been done. Do I want to get you implemented here
2:25
And here it seems that I have written the spelling of implement wrong. No problem
2:29
So here we have also corrected the spelling of the implement. So basically I want to get you guys to implement a library class
2:37
Anyone can make an object of that library class and add books in it
2:43
Can issue books. And here I also put an add book option
2:48
Can add books. Can issue books. Can return books. And can show available books
2:53
Now here you can not increase the size of the array. So I give you the option that you can take a maximum size array
3:01
And can store books in it. And by doing this, your work will be done
3:06
So I hope you guys understood this exercise. You have to solve this exercise
3:11
And below, first of all, everyone write Challenge Accepted. If you write Challenge Accepted, then I will know that you are going to solve it
3:20
And I will give you a shoutout whenever I make a solution video of this exercise
3:26
So I hope you guys understood this thing. And you will definitely solve this
3:30
Do give me your solutions below. And all the initial commenters, that is, those who will comment in the beginning
3:36
I will definitely give a shoutout to all of them. So that's it for this video guys
3:41
Thank you so much guys for watching this video. And I will see you next time