Refactored Lab2

This commit is contained in:
BadOfficer 2023-02-22 01:02:45 +02:00
parent 0b16cf927b
commit 71baf63a21
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class Lab2 {
private static void scanMatrix(byte[][] matrix, Scanner scan) { //Method for filling matrix
for (byte i = 0; i < matrix.length; i++) {
for (byte j = 0; j < matrix[i].length; j++) {
System.out.print("Enter element" + "[" + i + "]" + "[" + j + "]: ");
System.out.printf("Enter element [%d][%d]", i, i);
matrix[i][j] = scan.nextByte();
}
}