如何定义一个变量既是枚举又是boolean类型

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/05 20:06:22

如何定义一个变量既是枚举又是boolean类型

你想做什么?
public enum enum_boolean {
boolean("true",1);}