nested enum



Is it possible to do a nested enum?
For example,
private enum inside0{a,b,c}
private enum inside1{d,e,f}
private enum outside{inside0, inside1}

outside _variable=outside.inside0.a; //error here, but want a similar
way

Is it possible to set the _variable in the way similar to the above?
Thanx



.



Relevant Pages

  • nested enum
    ... Is it possible to do a nested enum? ... private enum inside0 ... private enum outside{inside0, inside1} ... Prev by Date: ...
    (comp.lang.java)
  • Re: nested enum
    ... For example, private enum inside0 ... private enum outside{inside0, inside1} ... I do not have the answer but I would recommend you ask this question in the comp.lang.programmer newsgroup. ... -William E. Taylor, Regular Guy. ...
    (comp.lang.java)