我正在为我的Java 1类工作,我收到一个看起来不应该是错误的错误。我可以得到一些帮助吗?据说,如果我有其他的话,我会有其他的。
这是if块
char placement = scan.next().toUpperCase().charAt(0);
if(placement == 'F')
{
System.out.print("Please Enter The Show To Be Added At The Beginning Of The List: ");
String show = scan.next();
TVShows.add(0, show);
}
else if(placement == 'R');
{
System.out.print("Please Enter The Show To Be Added At The End Of The List");
String show = scan.next();
TVShows.add(show);
}
else
{
System.out.println("Invalid Choice Please Try Again");
}
答案 0 :(得分:10)
删除半结肠
else if (placement == 'R');
^
正在终止else if
块语句