Monday, 14 December 2015

How to Convert Enumeration to Arraylist - Java Example

We can convert enumeration to arraylist in java with  the help list() method of Collections.

package javaproficeincy;

import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;

public class EnumerationToList {
public static void main(String[] args) {
Vector<String> vt = new Vector<String>();
        Enumeration<String> enm = vt.elements();
        List<String> ll = Collections.list(enm);
        System.out.println("List elements: "+ll);



List elements: [java, php, array, string, c]

Related Posts :


  1. wow this is the thing i was looking for

  2. thanks for sharing wonderful blog with us. its really more helpful to our institute candidates to get aware some useful knowledge keep sharing more information.
    Dot Net training in Chennai


  3. Great and useful article. Creating content regularly is very tough. Your points are motivated me to move on.

    SEO Company in Chennai

  4. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai Java 8 Training in Chennai JavaEE Training in Chennai JavaEE Training in Chennai

  5. Thanks for sharing this program.It is really helpful.Continue sharing more like this.
    Java Training in Chennai | Java Training Institutes in Chennai | Java courses in Chennai

  6. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information.
    Best hadoop training institute in chennai|Hadoop Training Chennai|Hadoop Training in Chennai

  7. Excellent post!!! Your article helped to under the future of java development. Being an open source platform, java is integrated in most of the software development industries to create rich featured applications.Java Course in Chennai | Best JAVA Training in Chennai

  8. Nice Post! It is really interesting to read from the beginning & I would like to share your blog to my circles, keep your blog as updated.
    cloud computing training in chennai|cloud computing training

  9. Excellent post!!! The future of cloud computing is on positive side. With most of the companies integrate Salesforce CRM to power their business; there is massive demand for Salesforce developers and administrators across the world.Salesforce Training in Chennai | Salesforce Training Institutes in Chennai

  10. Hi, Really your post was very informative. Today's internet era learn Hadoop Online Training will helps you to reach your goal.Selenium Training

  11. Nice sharing. R is a language and environment for statistical computing and graphics. Want to make a career in R Programming. Learn R Programming Training course @ GangBoard. We are the best provider of online training on evergreen technologies.

  12. It's very best beneficial blogs.I read this subjects blog such a great blog and good sharing I'll be like this information post.
    Selenium Training in Chennai
    Selenium Training

  13. This post was quite awesome and interesting to read. Congrats for your work. Thanks a lot for providing this with us. Keep on updating this with us regularly.
    Best institute chennai

  14. Excellent blog.This was really helpful.I would like to read more about java.
    Salesforce Training in Chennai | Salesforce course in Chennai

  15. Nice blog, you have provided the right info that will be beneficial to somebody at all time. Thanks for sharing your valuable Ideas to our vision. No.1 CCNA Training in Chennai | No.1 CCNP Training in Chennai

  16. Hi, am a big follower of your blog. I am really happy to found such a helpful and fascinating post that is written in well manner.

    mobile website builder