here new code new problems
Hi, I did as i you give me some hints but still i have some problem , the out come start from 0 even i want to start from 1.
any help now please ?
thanks
Code:
import java.util.Scanner;
public class NestedPanels
{
public static void main(String[] args)
{
int[][] table = new int[20][5];
// Load the table with values
for (int row=0; row < table.length; row++)
for (int col=0; col < table[row].length; col++)
table[row][col] = row * 5 + col;
// Print the table
for (int row=0; row < table.length; row++)
{
for (int col=0; col < table[row].length; col++)
System.out.print (table[row][col] + "\t");
System.out.println();
}
}
}
out come
0 1 2 3 4
5 6 7 8 9
....