|
Java™ by example!
|
|
|
How do I convert a TreeMap to a Vector?
Use the Vector's constructor that takes a Collection. The TreeMap contains a pair of object for each element. Convert the keys with keySet(), the values with values(). Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|