嗨,我在将字符串教师姓名添加到我为 coursename 制作的现有课程中时遇到问题,你能帮我修复错误吗 - 这给了我 8 个错误
import java.util.Scanner;
公共课成绩簿{
private String courseName, instructorName;
public GradeBook ( String name )
{
courseName = name;
}
public GradeBook ( String name )
{
instructorName = name;
}
public void setCourseName ( String name )
{
CourseName = name;
}
public void setInstructorName ( String name )
{
InstructorName = name;
}
public void getCourseName ( String name )
{
return courseName;
}
public void getInstructorName ( String name )
{
return instructorName;
}
public void displayMessage();
{
System.out.printf( "Welcome to the grade book for\n%s!\n\n",
getCourseName() );
System.out.printf( "Your instructor for this course is\n%s!\n\n",
getCourseName() );
}
}