This doesn't really make a difference just some general advice. Theres no need to declare i and j in the main method infact you don't need to declare them until the for loop
Code :
for (int i = 0; i < arrayOfOs.length; i++)
But I guess thats down to preferance but the i and j in main do nothing.
Now onto more pressing matters please indent any code you are putting on this forum it makes it much harder to read when it's not.
And what is this bit of code for?
Code :
while (j < 4)
{
System.out.println(arrayOfOs[i][j]);
}
It doesn't have an iterator so it will just go into an infinite loop right?
And yes we need a bit more detail about where it's going wrong.