Package com.library.books
Class Main
java.lang.Object
com.library.books.Main
The
Main
class contains the main method which serves as the entry point for the Library Book Management System.
It displays options to the user and performs operations based on user input.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add_book()
Adds a new book to the library.static void
issue_book
(String name) Issues a book from the library.static void
Lists all books in the library.static void
The main method which is the entry point of the application.static void
return_book
(String name) Returns a book to the library.
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
The main method which is the entry point of the application. It welcomes the user, displays options, and performs operations based on user input.- Parameters:
args
- command-line arguments (not used)
-
add_book
public static void add_book()Adds a new book to the library. -
list_books
public static void list_books()Lists all books in the library. -
issue_book
Issues a book from the library.- Parameters:
name
- Name of the book to be issued
-
return_book
Returns a book to the library.- Parameters:
name
- Name of the book to be returned
-