Ahhhh....I think I'm starting to see what's going on.
The thing is, if you have an even number of rectangles, you're going to have
2 middle cells.
That's why you're adding one to the number of rows and/or columns, to make it so there's only 1 middle cell.
That will make it even again.
A better way would be to make a 2D array
// first make sure that you've already added the extra cell
String[][] array = new String[rows][columns];
for (int rows = 0; rows < array.length; rows++)
{
for (int columns =0; columns < array[rows].length; columns++)
array[rows][columns] ="[_]";
}
// not sure if you need a second pair of brackets after second for statement. You'll have to check on that one.
Say for 5 rows and 5 columns
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4
for a count of n * m where n and m are both odd, set the
((n*m)/2) + 1 element to " ";