2006-09-13 1要素の列挙型は、そのままシングルトン java enum Color { RED(10); int v; Color(int i) { v = i; } } 列挙型タイプはインスタンス化できません。 Color c = new Color(11); ^ エラー1