import java.util.*; public class Student { private int classYear; private String major; private String name; private int age; /** * getName * * Description: Returns the student's name * Parameters: none * Returns: the student's name */ public String getName() { return name; } /** * setName * * Description: Sets the student's name * Parameters: * studentName - the student's name * Returns: nothing */ public void setName(String studentName) { name = studentName; } /** * getMajor * * Description: Returns the student's major * Parameters: none * Returns: the student's major */ public String getMajor() { // *** FILL IN THE CODE FOR THIS METHOD } /** * setMajor * * Description: Sets the student's major * Parameters: * studentMajor - the student's major * Returns: nothing */ public void setMajor(String studentMajor) { // *** FILL IN THE CODE FOR THIS METHOD } /** * getAge * * Description: Returns the student's age * Parameters: none * Returns: the student's age */ public int getAge() { // *** FILL IN THE CODE FOR THIS METHOD } /** * setAge * * Description: Sets the student's age * Parameters: * studentAge - the student's age * Returns: nothing */ public void setAge(int studentAge) { // *** FILL IN THE CODE FOR THIS METHOD } /** * setClassYear * * Description: set the student's class year to the specified year * If the specified year is > 4, the student's class year is set to 4. * If the specified year is < 1, the student's class year is set to 1. * Parameters: * year - the year to set the student's class year to * Returns: nothing */ public void setClassYear(int year) { if (year < 1) classYear = 1; else if (year > 4) classYear = 4; else classYear = year; } /** * inceaseYear * * Description: increase student's class year by the specified amount. * Parameters: * numYears - the number of years to add to the student's class year * Returns: nothing */ // *** PUT YOUR increaseYear() METHOD HERE // *** HINT: You can call the setClassYear() method from inside the // increaseYear() method /** * printInfo * * Description: print student information to the console * Parameters: none * Returns: nothing */ public void printInfo() { System.out.println("Name: " + name); System.out.println("Age: " + age); System.out.println("Major: " + major); System.out.println("Class year: " + classYear); System.out.println(); } }