How do I add an enum to an ArrayList in Java?

Use the element() method of vector to get the enumeration of the vector element. Using the list(Enumeration e) method of the Collections to get the ArrayList.

Sizin İçin Seçtik  How many constructors can an enum have?

Leave a Reply

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