Hello. I have started writing a program that adds students and courses into a university. The problem I have is I keep getting "Student.java:62: cannot find symbol" errors, I looked at an example and I have it setup the same way so I don't know where I am going wrong. Any help would be appreciated
/**
* @(#)Student.java
*
*
* @author
* @version 1.00 2012/2/28
*/
import java.util.*;
public class Student {
private String name;
private int year, studentNumber;
ArrayList<Course> courses;
public Student(String n, int s, int y) {
name = n;
studentNumber = s;
year = y;
}
public Student(){
name = "";
studentNumber = 0;
year = 2012;
courses = new ArrayList<Course>();
}
public String getName(){
return name;
}
public int getStudentNumber(){
return studentNumber;
}
public int getYear(){
return year;
}
public ArrayList getCourses(){
return courses;
}
public void addACourse(Course c){
courses.add(c);
}
public void removeACourse(Course c){
courses.remove(c);
}
public ArrayList<Student> classmatesAt(University u){
ArrayList<Student> classmates = new ArrayList<Student>();
for(Student s: students){
if((s.getStudents()).equals(u))
classmates.add(s);
}
return classmates;
}
/*public void setName(String n){
name = n;
}
public void setStudentNumber(int =s){
studentNumber = s;
}
public void setYear(int y){
year = y;
} */
public String toString(){
return (name + " " + studentNumber + " " + year);
}
}