Java COMM_UP无法解析为变量
我是java新手,我只想从以下位置编译客户端示例: 为什么我不能撒谎 问候语使用:Java COMM_UP无法解析为变量,java,eclipse,java-7,Java,Eclipse,Java 7,我是java新手,我只想从以下位置编译客户端示例: 为什么我不能撒谎 问候语使用: AssociationChangeNotification.AssocChangeEvent.COMM_UP 不只是COMM\u UP引用此值-它是AssociationChangeNotification类内部类中的enum值,因此必须以这种方式引用它(或使用更多导入)。使用: AssociationChangeNotification.AssocChangeEvent.COMM_UP 不只是COMM\u
AssociationChangeNotification.AssocChangeEvent.COMM_UP
不只是COMM\u UP
引用此值-它是AssociationChangeNotification
类内部类中的enum
值,因此必须以这种方式引用它(或使用更多导入)。使用:
AssociationChangeNotification.AssocChangeEvent.COMM_UP
不只是
COMM\u UP
引用此值-它是AssociationChangeNotification
类的内部类中的enum
值,因此您必须以这种方式引用它(或使用更多导入)。感谢您的回答
import com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent;
没用。我想格雷格已经回答了为什么这不起作用:
它是AssociationChangeNotification类的内部类中的枚举值,因此必须以这种方式引用它(或使用更多导入)
使用:
AssociationChangeNotification.AssocChangeEvent.COMM_UP
成功了。
谢谢你的回答
import com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent;
没用。我想格雷格已经回答了为什么这不起作用:
它是AssociationChangeNotification类的内部类中的枚举值,因此必须以这种方式引用它(或使用更多导入)
使用:
AssociationChangeNotification.AssocChangeEvent.COMM_UP
成功了。
谢谢