A Java console app that manages students and their marks — built with pure JDK, so anyone can compile and run it.
- ✨ What is CampusDesk?
- 🏆 What It Proves (for a Resume)
- 🎯 Features
- 🚀 How to Use
- 🧪 Try It First
- 🛠️ Tech Stack
- 📁 Project Structure
- 🔒 Privacy & Honest Limits
- 🤝 Contributing
- 💜 Credits
| 🎓 | 📊 | 🔍 | 💾 |
|---|---|---|---|
| Students | Marks & Grades | Search & Rank | CSV Save / Load |
CampusDesk manages students and their marks from the terminal — add a student, add marks, see the ranked list, search by name or roll, check class stats, and everything auto-saves to a CSV file.
🎓 CampusDesk
1. Add student (roll, name, course)
2. Add marks per subject
3. View all students — ranked by total marks
4. Search by roll number or name
5. Class stats — total students, class average, topper
6. Load demo data
0. Save & exit
Pure JDK. No external libraries. No database. No internet. ☕
| Skill | How CampusDesk proves it |
|---|---|
| 🧩 OOP done properly | Separate Student (data + grade logic) and StudentManager (list, search, sort, persistence) classes — not one giant file |
| 📚 Collections + Streams | Search by name, sort by total marks, class average — with Java Collections and Streams |
| 💾 File persistence | Students save to students.csv and reload on next run |
| ✅ Validation | Duplicate roll numbers rejected, marks must be 0–100 |
| 🖥️ Clean CLI | Numbered menu, clear output, demo data for instant testing |
| # | Feature | What it does |
|---|---|---|
| 1 | Add student | Roll, name, course — duplicate rolls rejected |
| 2 | Add marks | Per subject, with automatic total, average and grade (A/B/C/D/F) |
| 3 | Ranked list | View all students ranked by total marks |
| 4 | Search | By roll number or name |
| 5 | Class stats | Total students, class average, topper |
| 6 | Demo data | 3 students loaded in one keypress |
| 7 | Auto-save | Saves to students.csv on exit — re-run the app, your students are still there |
| Average | Grade |
|---|---|
| 90–100 | |
| 80–89 | |
| 70–79 | C |
| 60–69 | D |
| Below 60 | F |
# Compile
javac -encoding UTF-8 -d out src/com/campusdesk/*.java
# Run
java -cp out com.campusdesk.MainOr, the easy way:
| System | Command |
|---|---|
| 🐧 Linux / Mac | ./run.sh |
| 🪟 Windows | run.bat |
Requirements: Java JDK 8+ • Nothing else — no libraries, no build tool, no internet
| Step | Press | What happens |
|---|---|---|
| 1 | 6 |
Demo data — 3 students loaded in one keypress |
| 2 | 3 |
Ranked list — see them sorted by total marks |
| 3 | 5 |
Class stats — total students, average, topper |
| 4 | 0 |
Save & exit — writes students.csv |
| 5 | Run again | Your students are still there, loaded from students.csv ✨ |
🎓 CampusDesk — Demo
1. Aarav Sharma | BCA | Total: 452 | Avg: 90.4 | Grade: A
2. Priya Patel | BCA | Total: 438 | Avg: 87.6 | Grade: B
3. Rohan Kumar | BCA | Total: 421 | Avg: 84.2 | Grade: B
📊 Class Stats: 3 students | Average: 87.4 | Topper: Aarav Sharma
| Layer | Technology |
|---|---|
| ☕ Language | Java — pure JDK, no external libraries |
| 📚 Concepts | OOP, Collections, Streams, File I/O, CSV persistence |
| 🖥️ Interface | Clean console CLI — numbered menu |
| 💾 Storage | students.csv — plain text, human-readable |
| 🐧🪟 Run | run.sh (Linux/Mac) • run.bat (Windows) |
🎓 campusdesk/
│
├── 📂 src/com/campusdesk/
│ ├── 🏠 Main.java # Menu + input handling
│ ├── 👤 Student.java # Student data, total / average / grade, CSV format
│ └── 🗂️ StudentManager.java # List, search, sort, save / load
├── ▶️ run.sh # Run on Linux / Mac
├── ▶️ run.bat # Run on Windows
├── 💾 students.csv # Your data (created on first save)
└── 📖 README.md # You are here ✨
- 💾 Your data stays on your computer —
students.csvis a local file, nothing is uploaded - 🔑 No account, no server, no internet — pure offline Java
Honest limit: this is a console app with CSV storage — perfect for learning OOP, Collections, and file handling. It is not a web app or a database system. A real college system would need a database, multi-user login, and a web interface — that's a future version, not faked here.
Found a bug, a better grade rule, or a cleaner menu?
Open an issue or a pull request — real improvements only, no fake features. 🎓
📧 Email: [email protected]
🎓 Students, marks, and ranks — managed the clean Java way. ☕
⭐ If CampusDesk helped you learn OOP, star this repo! ⭐