Book 3
Building a Student Management System in Java
Project Overview
This console-based Java application manages student records.
Full Project Code
import [Link]; import [Link];
class Student { String name; int age;
Student(String name, int age) {
[Link] = name;
[Link] = age;
public class StudentManagement { static ArrayList students = new
ArrayList<>();
public static void main(String[] args) {
Scanner scanner = new Scanner([Link]);
while (true) {
[Link]("1. Add Student");
[Link]("2. View Students");
[Link]("3. Exit");
int choice = [Link]();
[Link]();
if (choice == 1) {
[Link]("Enter name: ");
String name = [Link]();
[Link]("Enter age: ");
int age = [Link]();
[Link](new Student(name, age));
} else if (choice == 2) {
for (Student s : students) {
[Link]([Link] + " - " + [Link]);
} else {
break;
Conclusion
You built a basic object-oriented management system.