This is a simple Java program implementing a Student Database Management System. It allows users to perform various operations like adding students, viewing students, searching for a specific student, calculating the average marks of all students, and exiting the program.
- Add Student: Users can add a new student to the database by providing their name, roll number, age, and marks.
- View Students: Users can view the details of all students currently stored in the database.
- Search Students: Users can search for a specific student by entering their roll number.
- Calculate Average Marks: Users can calculate the average marks of all students stored in the database.
- Exit: Users can exit the program.
- Run the program.
- Choose an option from the menu by entering the corresponding number.
- Follow the prompts to perform the selected operation.
- Repeat steps 2-3 until you choose to exit the program.
- This program uses a
HashMap
to store student objects, with roll numbers as keys for easy retrieval. - Input validation is minimal in this program. It assumes valid input from the user.