I use an enumeration defines the enable and disable 1 0, now I am going to enable to disable enumeration set method how can I modify
CodePudding user response:
Enum STATE {
ON,
OFF
}
Public static void main (String [] args) {
The STATE STATE=STATE. OFF;
State=state. ON;
}
CodePudding user response: