How to cast a value from one enum to another in Java?

前端 未结 0 1748
傲寒
傲寒 2021-02-13 07:54

How can I cast a value from Enum1 to Enum 2 in Java? Here is an example of what I\'m trying to do :

public enum Enum1 {
  ONE,
  TWO,
  THREE;
}

public enum Enu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题