0

Program java

A computational grid is a table whose cells are the results of the linkage of the row or Include column labels with a specific (arithmetic) operation. We create Computational grating for the addition, i. an addition table. Table 1: Computational grid for addition of the first 5 positive natural ones numbers + 1 2 3 4 5 1 2 3 4 5 6 2 3 4 5 6 7 3 4 5 6 7 8 4 5 6 7 8 9 5 6 7 8 9 10 code: https://code.sololearn.com/cEqgb3vs277Z/#java

17th Oct 2019, 1:34 PM
Micelito
Micelito - avatar
6 Respostas
+ 1
Micelito Remove first line of the code. There is no use of import your own created package. Second thing try to do debug.
17th Oct 2019, 8:16 PM
A͢J
A͢J - avatar
0
What's your problem? Remove first line to work well.
17th Oct 2019, 1:47 PM
A͢J
A͢J - avatar
0
learn about loop for()
17th Oct 2019, 7:00 PM
zemiak
17th Oct 2019, 8:11 PM
Micelito
Micelito - avatar
0
I deleted that. And now i see this Anzahl Spalten: Anzahl Zeilen: + | Exception in thread "main" java.util.NoSuchElementException at java.base/java.util.Scanner.throwFor(Scanner.java:937) at java.base/java.util.Scanner.next(Scanner.java:1594) at java.base/java.util.Scanner.nextInt(Scanner.java:2258) at java.base/java.util.Scanner.nextInt(Scanner.java:2212) at Main.main(Main.java:17)
17th Oct 2019, 8:27 PM
Micelito
Micelito - avatar
0
no such element - there is incorrect input not code, it expects two numbers separated with space or with newline
17th Oct 2019, 9:36 PM
zemiak