File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Vectors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Vectors" Watch "Vectors" New topic


kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
I've used a vector to collect information for a program. I want to convert the vector to an array, but can't think of how to do that. So, How do you convert a vector into an array? TIA.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Object[] myArray = myVector.toArray();

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Vectors
It's not a secret anymore!