Java Tutorial: Exercise 4 - Online Library

preview_player
Показать описание
Online Library in Java: In this video, we will see how to create an online library in Java. This exercise will help you improve your fundamentals in Object Oriented programming.

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

I was doing job as a software engineer since 2 years but still I have a huge fear of coding and I always try to avoid writing the code. Last month I got laid off from my company as a part of mass layoff. Market is not good these days and I am struggling so much to get a new job. During this phase, I realized I need to learn coding and get rid of my fear if I want to get a new job quickly. In this hard time, I am learning coding from this playlist and gaining some confidence that it's not that tough what I always used to think. Thank you so much Harry bhai for this valuable content. I am writing this comment on 26/7/2024, 11:32PM & will come back and edit this when I'll get a job. Need everyone's blessings who is reading this so that I can come back as soon as possible. Wish me luck guys!!

RKPVlogs
Автор

Harry bhai mi kuch chize sikha aj es code se.. implement nhi kr paya code..lekin solutn dekha aur smja bohot sari chize..krlunga bhai me course ending tak ye chize bhi..love you ❤️

CodingGuide
Автор

लाल फूल पीला फूल, हैरी भैया के Contents Beautiful 🌟

deepakjaiswal
Автор

Love from Pakistan...please continue this course to advance level...I appreciate your efforts...

sundarkumar
Автор

System.out.println("harry bhaiya you teach really well");

aakarshag
Автор

Completed the web development course today
Thank You so much sir❤️❤️❤️❤️

shashankthapliyal
Автор

Day 6 of starting java . i hope i will complete this whole course. thanks harry bhaiya you explained in a really nice way .

chocolate_milkshake
Автор

Bro I think we should use ArrayList / HashSet instead of array for dynamic length

parthsangani
Автор

i am watching your all toturials sir loved it!

raghavsingh
Автор

Sir I am learning python form your latest video of python and I am learning very much from your video thanks sir very very much ❤️😭❤️😭

shivanigoyal
Автор

I have watched all 50 videos with full dedication. Today I am on 51st video but still not able to program it all by myself without seeing the solution and I want to land up a job asap. Please guide me thanks!

pie
Автор

Bro android development course ka video kb aayega Please reply

thinkingstatus
Автор

Harry bhaiya ek video linux ke uppar
Banao bhaiya
Aap bahut hi acha teach karte ho
Ek teacher bhi nahi karsakta
Aap vaisa teach karte

smartprogrammers
Автор

maan gaye guru ~ May 12, 2k21 (6:11 pm)

techsutra
Автор

SIR PLEASE ANDROID DEVELOPMENT WALA COURCE AAGE BADHAIYE NA...

d.modi-aik
Автор

Sir please make a video on HOW TO MAKE GUI WITH C++. And sir please tell me which is best language for desktop gui development.

RajvirSingh
Автор

1 million in feb ... COngratulations CODEWITHHARRY FAMILY

jatinrathi
Автор

Harry sir make video on algo trading using with lots of love♥♥♥♥♥

nayannandi
Автор

package practiceSet;

class Library{
String[] books;
int no_of_books; // The library constructor is allocating memory for 100 books in a array BOOKS
Library(){ // int no_of_books = space of the book like for eg we are starting from book no. 0 so
this.books = new String[100]; // int no_of_books = 0 and then it will be ++ later (100 books maximum) memory allocated for 100 books here )
this.no_of_books = 0;
}

void addBook(String book) { // As we are going to add books into the library so we will be using addBook method
this.books[no_of_books] = book; // this.books[the book number or the space of book where we want to add a new book]
no_of_books++; // after we add a book in space for eg 0th space we will increase no_of_books by ++
System.out.println( "\"" + book + "\"" + " has been Added!");
}

void showAvailableBooks() {
books are: ");
for (String book : this.books) {
if(book == null) {
continue;
}
System.out.println("*" + book);
}
}
void issueBook(String book) {
for(int i = 0;i<this.books.length;i++) {
{
System.out.println("The book has been issued! ");
this.books[i] = null;
return;
}
}
System.out.println("This book does not exist");
}
void returnBook(String book) {
addBook(book);
}

}
public class Exercise4 {

public static void main(String[] args) {
// You have to implement a library using Java Class "Library"
// Methods: addBook, issueBook, returnBook, showAvailableBooks
// Properties: Array to store the available books,
// Array to store the issued books

Library centralLibrary = new Library();

and Grow Rich");

centralLibrary.addBook("My new life!");

Pan");


System.out.println("\n");




System.out.println();



System.out.println();



System.out.println();



}

}

shivamchawla
Автор

Challenge accepted 😎🙏🙏 by Sadashish
Love u from Deoghar Jharkhand

sadashish
visit shbcf.ru