copy or convert a TreeSet to Vector

Posted on 2005-04-22
Last Modified: 2008-01-09
i have a method that has to take a vector as argument. but the data that i have are currently in an TreeSet.
How can i copy or convert a TreeSet to Vector?

Question by:komlaaa
    LVL 8

    Accepted Solution

    Vector(Collection c)
    LVL 8

    Expert Comment

    a vector construtor that takes the Object of type collection and converts it to a vector

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    changeXy challenge 13 42
    strCount chalenge 3 36
    where is session ID cache stored 1 28
    Java Message handling in Service Layer 3 23
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now