/** * Student series demonstrates encapsulation by representing a student in a class * Student0 - base example with student ID, name, and graduation year * * @author Tim Pierson, Dartmouth CS10, Winter 2025 */ public class Student0 { String name; int graduationYear; public static void main(String[] args) { Student0 alice = new Student0(); alice.name = "Alice"; alice.graduationYear = 2027; System.out.println("Name: " + alice.name + ", Year: " + alice.graduationYear); } }