File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Converting a 2 dimensional array to a Vector => Basic problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting a 2 dimensional array to a Vector => Basic problem" Watch "Converting a 2 dimensional array to a Vector => Basic problem" New topic
Author

Converting a 2 dimensional array to a Vector => Basic problem

Meghna ks
Ranch Hand

Joined: Mar 15, 2001
Posts: 122
Hi ,
I have a 2 dimensional array as shown below. How do I convert this to a Vector ?!! I know its a basic problem, but don't seem to find a soln. at the moment.
public static final String orders_columns[][] = {
{ "Severity" , "VARCHAR" },
{ "AlarmID" , "VARCHAR" },
{ "IP" , "VARCHAR" },
{ "Date & Time", "DATE" },
{ "Description", "VARCHAR" },
};
Thanks
Meghna.
Art Metzer
Ranch Hand

Joined: Oct 31, 2000
Posts: 241
Hi, Meghna.
The code you'll want to focus on here is in toVector():

This code returns

Good luck.
Art
 
Consider Paul's rocket mass heater.
 
subject: Converting a 2 dimensional array to a Vector => Basic problem
 
Similar Threads
Question on array conversion
Vector Collection
Array conversion Question from Dan's test
A question about Vectors
how to delete row from Jtable