I have an array of strings called initStrings and an array called squares. I need to take the strings from initStrings and add them one by one into different rows in the array squares
static String[] initStrings =
{
"...../...\\",
"..\\.......",
"......./..",
"..........",
"........\\.",
"..........",
"..........",
".....\\../.",
"..\\....../",
".........."
};
static int [][] squares;
public static void initialize()
{
int [][] squares = new int [10][10];
for (col = 0; col < 10; col++)
{
for (rows = 0; rows < 10; rows ++)
{
squares[col][rows] = initStrings();
}
}
I was told in class that I need a nested for loop to do this but inside the rows loop I can't figure out what to put. Any help?