Skip to content

Repository files navigation

Hostel Management System (Java)

This is a console-based Hostel Management System developed in Java using Object-Oriented Programming (OOP) and File Handling.

The system allows management of:

  • Students
  • Employees
  • Rooms
  • Fees and Payments
  • Login-based access

🚦 Program Entry Point

The program execution starts from:

login.java usernmae is "umar" and password for login is "umar123"

All user interactions, menus, and navigation between different modules (Student, Employee, Room, Fee, etc.) are controlled from this file.

📌 Features

  • Student registration and record management
  • Room allocation and vacancy tracking
  • File-based data storage (no database required)
  • Secure read/write operations using Java File Handling
  • Menu-driven console interface
  • Clean OOP-based class design

📂 File & Module Overview

File Name Purpose
Login.java Handles user authentication and login validation
Home.java Main menu and system navigation (entry point)
AddStudent.java Adds new students and saves data using file handling
UpdateDeleteStudent.java Updates or deletes student records
AllStudentsLiving.java Displays all currently living students
LeavedStudents.java Manages students who have left the hostel
StudentFee.java Handles student fee records and payments
AddEmployee.java Adds hostel employees
UpdateDeleteEmployee.java Updates or deletes employee records
AllEmployeesLiving.java Shows active employees
LeavedEmployees.java Manages employees who have left
EmployeePayment.java Handles employee salary/payment records
ManageRoom.java Manages hostel rooms and availability

🛠️ Technologies Used

  • Java (Core Java)
  • Object-Oriented Programming (OOP)
  • File Handling (File, FileReader, FileWriter)
  • VS Code
  • Git & GitHub

▶️ How to Run the Project

Prerequisites

  • Java JDK 8 or above
  • VS Code / IntelliJ / NetBeans
  • Command Prompt or Terminal

Steps

  1. Clone the repository:
git clone https://github.com/ytshortsumar/hostel-management-system-java.git

javac *.java

java Home


## 🔄 Program Flow

1. User starts the application
2. Login screen is displayed
3. After successful login, Home menu appears
4. User selects a module:
   - Student Management
   - Employee Management
   - Room Management
   - Fee / Payment Management
5. Data is stored and retrieved using file handling
6. User can continue operations or exit the system



## 💾 Data Storage

This project does not use a database.

All records (students, employees, fees, rooms) are stored using
Java File Handling (`File`, `FileWriter`, `FileReader`, etc.).

This makes the system lightweight and easy to understand for beginners.

## 🎓 Intended For

- Java beginners learning OOP
- Students working on semester projects
- Practice of file handling in Java
- Hostel / School management mini-projects

## ❓ Common Questions

**Q: Where is the main file?**  
A: Home.java is the main entry point.

**Q: Does this project use a database?**  
A: No, it uses file handling.

**Q: Can I extend this project?**  
A: Yes, GUI and database can be added later.

About

A Java-based Hostel Management System built using OOP principles and File Handling.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages