conert enum to list of string

PHOTO EMBED

Mon Apr 19 2021 08:04:07 GMT+0000 (UTC)

Saved by @firdauslazim #java

     List<String> listOfReport = Stream.of(AlipayReports.values())
                .map(Enum::name)
                .collect(Collectors.toList());
content_copyCOPY

enum