请问这里的最后TYPE_COUNT 返回的值是多少?

 public enum Type {  
        INSTALLER(R.string.install\_update, R.string.framework\_install, R.string.framework\_install\_recovery),  
        UNINSTALLER(R.string.uninstall, R.string.uninstall, R.string.framework\_uninstall\_recovery);  
  
        public final int title;  
        public final int text\_flash;  
        public final int text\_flash\_recovery;  
  
        Type(@StringRes int title, @StringRes int text\_flash, @StringRes int text\_flash\_recovery) {  
            this.title = title;  
            this.text\_flash = text\_flash;  
            this.text\_flash\_recovery = text\_flash\_recovery;  
        }  
    }  
    private static final int TYPE\_COUNT = Type.values().length;
阅读 1.6k
1 个回答

在 Idea 中试一下不就知道了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题