This is my print square method
public void printSquare()
{
DecimalFormat newSquare = new DecimalFormat("00");
for (int row = 0; row < square.length; row++)
{
for (int col = 0; col < square[row].length; col++)
{
System.out.print((newSquare.format(square[row][col])) + " ");
}
}
System.out.println();
System.out.println();
}
this is what its output looks like
08 01 06 03 05 07 04 09 02
This is what i need it to look like
08 01 06
03 05 07
04 09 02
I've been trying to figure this out for a long time, any help will be appreciated! Thank you!