[Solved] Keep getting complimation errors in array [closed]
int[][] sales = new int[6][8]; // a for (int i = 0; i < sales.length; i++) { int sum = 0; for (int j = 0; j < sales[i].length; j++) { sum += j; } System.out.println(“Location ” + String.valueOf(i) + ” has ” + String.valueOf(sum) + ” anvils sold”); } // b for (int i … Read more