我现在正在学习 Java,我似乎无法弄清楚这些错误......
public class Input {
Setter access = new Setter();
// ^ Error here: Syntax error on token ";", { expected
// after this token.
if (commandExc == fly) {
access.flySetter();
}
else if (commandExc == xray) {
access.xraySetter();
}
} // < Error here: Syntax error, insert "}" to complete ClassBody
谢谢你。