/** * A student has a name and a perm number. * * @author Phill Conrad, and (insert your name here) * @version lab02 for CS10, Spring 2009. */ public class Student { // instance variables private String name; private int permNumber; // perm number for this student. /** * Constructor for objects of class Student * @param theName the name of the student * @param thePermNumber the perm number for the student */ public Student(String theName, int thePermNumber) { // The constructor should // initialize instance variables // the the values passed in } /** Get the name * @return name of student */ public String getName() { return ""; // @@@ STUB... remove when you implement method } /** Get the perm number * @return the perm number of the student */ public int getPermNumber() { return 0; // @@@ STUB... remove when you implement method } /** Set the name * @param newName new name of the student */ public void setName(String newName) { // Assign the instance variable this.name to the // value of the parameter passed in, i.e. newName // @@@ STUB... remove when you implement method } /** Set the permNumber * @param newPermNumber new perm number of the student */ public void setPermNumber(int newPermNumber) { // Assign the instance variable this.permNumber to the // value of the parameter passed in // @@@ STUB... remove when you implement method } public String toString() { // Return a nicely formatted string version of the // object--something you could pass to System.out.println // as a parameter. But DON'T use System.out.println---just // return the value. return ""; // @@@ STUB... remove when you implement method } }