public class Car
{
public enum User { "user", "computer", "na" };
private char car;
private final User user;
private boolean call;
public Car(char object, User user, boolean call)
{
this.car = car;
this.user = user;
this.call = call;
}
public User getUser()
{
return user;
}
public void setUser(User user)
{
this.user = user;
}
}
当我尝试编译时,我得到以下信息:
错误:预期
错误:',', '}' 或 ';' 预期的
错误:“}”预期