+ 4

How to print all set of enum values ?

answer me anyone

23rd Feb 2019, 9:59 AM
Ajay Rayudu
Ajay Rayudu - avatar
4 Answers
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