aspose 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 Soft Skills this week in the Jobs Discussion 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting a 2 dimensional array to a Vector => Basic problem