Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Meghna.
The code you'll want to focus on here is in toVector():

This code returns

Good luck.
Art
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic