How do I get a list of all enum values?

To get all values of an enum, we can use the Enum. GetValues static method . The Enum. GetValues method returns an array of all enum values.

Sizin İçin Seçtik  Are enums integers in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *