Using Java 8 features, you can map each constant to its name: 1 2 3, List<String> enumNames = Stream.of(Enum.values())
確定! 回上一頁