JP I know we're here to help but have you ever thought of actually trying these things out for yourself to find out? Even if it doesn't work you learn something and then you try something new you...
Type: Posts; User: Faz
JP I know we're here to help but have you ever thought of actually trying these things out for yourself to find out? Even if it doesn't work you learn something and then you try something new you...
You don't have curly brackets for the second for loop so the first line after runs 4 times instead of the block you are expecting.
for ( i = 0; i < arrayOfOs.length; i++)
{
for ( j = 0; j <...
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
for (int i = 0; i <...