小白求助,安卓APP开发时eclipse里报错insert "EnumBody" to complete EnumDeclaration

安卓APP开发Java码里
public static enum connectionStateEnum{
static{
isConnecting=new connectionStateEnum("isConnecting", 3);
isConnected = new connectionStateEnum("isConnected", 4);
isDisconnecting = new connectionStateEnum("isDisconnecting", 5);
connectionStateEnum[] arrayOfconnectionStateEnum = new connectionStateEnum[6];
arrayOfconnectionStateEnum[0] = isNull;
arrayOfconnectionStateEnum[1] = isScanning;
arrayOfconnectionStateEnum[2] = isToScan;
arrayOfconnectionStateEnum[3] = isConnecting;
arrayOfconnectionStateEnum[4] = isConnected;
arrayOfconnectionStateEnum[5] = isDisconnecting;
}
}

复制了别人正确的代码,但在eclipse里一直报错
Syntax error, insert "EnumBody" to complete EnumDeclaration
应该怎么修改呀?
小白求助,感谢

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问