Dynamically Add Elements to an Enumeration

  • Thread starter Thread starter Christopher Pragash
  • Start date Start date
C

Christopher Pragash

Hello All,

I guess this may be a silly question but, Is there a way I can dynamically
create and add elements to an Enumeration? Any sample code would be of good
help.

Thanks,
Chris
 
You cannot add elements to an enumeration. You have to use an ArrayList to
do something like that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top