I got
String table[][]= new String [i][j];
Scanner insertN = new Scanner(System.in);
int N= insertN.nextInt ();
table[i][j]="-----";
int number1=1;
int number2=2;
How can I get from first to n char (“-“) and replace it with number(1)
if first N is 2 – program write in table 11—.
and if second N is 2 – program write in table 1122-
1 Answer