why am i getting a null return with this code at the bottom? You are a + year
i'm getting a null return when running this code: /** * The Student class represents a student in a student administration system. * It holds the student details relevant in our context. * * @author Michael Kƶlling and David Barnes * @version 2016.02.29 */ public class Lab3 { // the student's full name private String name; // the student ID private String id; // the amount of credits for study taken so far private int credits; // the year of the student private String year; /** * Return the year of the student. */ public String Year() { if((credits >= 0) && (credits <= 30)){ year = "Freshman"; } else if((credits >= 31) && (credits <= 60)){ year = "Sophomore"; } else if((credits >= 61) && (credits <= 90)){ year = "Junior"; } else if(91 <= credits){ year = "Senior"; } return year; } /** * Create a new student with a given name and ID number. */ public Lab3(String fullName, String studentID) { name = fullName; id = studentID; credits = 0; } /** * Return the full name of this student. */ public String getName() { return name; } /** * Set a new name for this student. */ public void changeName(String replacementName) { name = replacementName; } /** * Return the student ID of this student. */ public String getStudentID() { return id; } /** * Add some credit points to the student's accumulated credits. */ public void addCredits(int additionalPoints) { credits += additionalPoints; } /** * Return the number of credit points this student has accumulated. */ public int getC