化解一個誤區,其實switch和enum是能夠很方便配合使用的

enum switch case label must be the unqualified name of an enumeration constant 或 錯誤: 枚舉 switchcase 標籤必須爲枚舉常量的非限定名稱case ColorType.GREEN:java     在我們Android開發中,有一個變量可能會被不少界面引用,因此咱們就會在它前面增長static final p
相關文章
相關標籤/搜索