I'm not sure what I'm doing wrong, but when I build, I get the error:
Cannot find symbol
for both of these statements. Here is the constructor.
public Course
{
public Course(String cName,String cNum,ArrayList<Module> mod)
{
this.cName = cName;
courseNum = cNum;
this.mod = mod;
}
}
Is this what I have to do? If so, why not just forgo the "this" keyword and just use cName = cName? What purpose does the "this" have?
public course
{
String cName;
public Course(String cName)
{
this.cName = cName;
}
}