0% found this document useful (0 votes)
5 views2 pages

Java. Projects. Student Management

This document outlines a project for building a console-based Student Management System in Java. It includes the full project code that allows users to add and view student records. The project demonstrates basic object-oriented programming principles in Java.

Uploaded by

zktpkfd2wf
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Java. Projects. Student Management

This document outlines a project for building a console-based Student Management System in Java. It includes the full project code that allows users to add and view student records. The project demonstrates basic object-oriented programming principles in Java.

Uploaded by

zktpkfd2wf
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like