How to print all set of enum values ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

How to print all set of enum values ?

answer me anyone

23rd Feb 2019, 9:59 AM
Ajay Rayudu
Ajay Rayudu - avatar
4 ответов
23rd Feb 2019, 5:13 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 5
https://code.sololearn.com/cAyVFG7y2Qo2
23rd Feb 2019, 3:15 PM
Андрей Чачин, Andrew Chachin
Андрей Чачин, Andrew Chachin - avatar
+ 2
enum MyEnum {ONE, TWO, TEN}; ... System.out.println(EnumSet.allOf(MyEnum.class));
23rd Feb 2019, 3:24 PM
Андрей Чачин, Andrew Chachin
Андрей Чачин, Andrew Chachin - avatar
+ 1
👍
23rd Feb 2019, 3:18 PM
Ajay Rayudu
Ajay Rayudu - avatar