This Java program implements an online reservation system using a MySQL database. Users can perform various operations like adding reservations, deleting reservations, and viewing all reservations. The project consists of two main classes: Task1 and nested classes user and PnrRecord for handling user and reservation information respectively.
Usage Setup Database:
Modify the url variable in the main method to your desired MySQL database URL. Update the database name, username, and password accordingly. Run the Program:
Compile the Java file (Task1.java). Run the compiled Java program. Program Options:
Upon running the program, you will be prompted to choose an option: Insert a new reservation Delete an existing reservation Show all reservations Exit the program Contributing Feel free to contribute to this project by creating issues, suggesting improvements, or submitting pull requests. Your contributions are greatly appreciated!