So I think I'm going to convert it today, and start on the creation of the JTable. And then get on the J-Table thing tomorrow. I'm going to use it to
WOAH. No..I just thought of another way. I can always create a second 2D array and just organize it the same way, something like this (assuming second array has also been declared)
for (row = 0; row<length of 1d array; row++)
{
for (col = 0; col<row; col++)
{
if (col == 0) 2darray[row][col] = 1dayarray[row].getName();
if (col == 2) 2dayarray[row][col] = 1darray[row].getTown(); type thing until the end
And then when row == 1, we are talking about position 1 in the array, all the way until the length of the 1d array is complete.
}}
No comments:
Post a Comment