difference between Enum and enum

前端 未结 3 1542
执笔经年
执笔经年 2021-01-13 17:10

enum has valueOf(string) method to get enum constant and the same type of method present in java.lang.Enum class having name valueOf(enumClas

3条回答
  •  迷失自我
    2021-01-13 18:10

    Enum.valueOf(Class, String) is used to implement the valueOf(String) method generated into each specific enum class.

提交回复
热议问题