Thank you so much.
I put in what you had up top and it would print the first line perfectly but it threw an error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at...
Type: Posts; User: dspear
Thank you so much.
I put in what you had up top and it would print the first line perfectly but it threw an error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at...
The code that I need help with is:
for (int i=0; i<ROWS; i++)
{
for (int j=0; j<COLUMNS; j++)
{
System.out.print(" " + numberArray[i][j]);
}
The problem is when I use the printf to format...
I was wondering if there is a way to format the output of an array so that each indexed item has a discriptor and formatted in a certian way?
Example:
I have an array with 2 rows and 2 columns...