Skip to content

Instantly share code, notes, and snippets.

View Lamidi414's full-sized avatar
🎯
Focusing

Salisu Abdulhamid Lamidi414

🎯
Focusing
View GitHub Profile
@Lamidi414
Lamidi414 / Encapsulation.md
Last active March 21, 2026 10:30
Getters and Setters Method in Java (Encapsulation)

Java Encapsulation: Getters and Setters

This document explains the fundamental concepts of Encapsulation in Java using Getter (Accessor) and Setter (Mutator) methods.


πŸ“– Overview

In Java, we use getters and setters to protect data within a class. By making class variables private, we prevent external classes from accessing or modifying them directly. Instead, we provide public methods to manage that interaction safely.

@Lamidi414
Lamidi414 / Assignment01.md
Created March 5, 2026 00:39
Java Assignment 01 – Student Information System using Scanner

Assignment 01

Student Information System

Create a Java program that collects student information from the user and displays a well-formatted student profile.


Program Requirements

The program should ask the user to enter the following information: