java enum switch

an enum switch case label must be the unqualified name of an enumeration constant

EnumCommandType cmdType = EnumCommand.forCommand(command);
switch (cmdType)
{
case Back:

break;
case Command:

break;
}
 
posted @ 2022-03-22 10:02  mtgold  阅读(101)  评论(0)    收藏  举报