error help
try compile the code kindly tell me on how to fix the error ..i think i have done corrent in building the constructor..the error says, "CANNOT FIND SYMBOL - CONSTRUCTOR EXERCISE311(java.lang.String)" how the hell that happened since the first class is correct ..
publicclass Exercise311
{
private String courseName; String teacherName;
public Exercise311(String name, String teacher)
{
courseName = name;//initialize courseName;
teacherName = teacher;
}
publicvoid setCourseName(String name)
{
courseName = name;//stores courseName
}
publicvoid setTecherName(String teacher)
{
teacherName = teacher;//stores courseTeacher
}
public String getCourseName()
{
return courseName;
}
public String getTeacherName()
{
return teacherName;
}
publicvoid displayMessage()
{
System.out.printf("Welcome to Programming for %s\n",getCourseName());
}
}
HERE'S THE MAIN CLASS
publicclass _311
{
publicstaticvoid main(String[] args)
{
Exercise311 new_311 =new Exercise311("Computer Engineering");
new_311.displayMessage();
}
}

