C:\Java>java IntArrayWorkerTester




This should have all 1's in first row and all 2's in second
1 1 1
2 2 2

fills with 2's on diagonal, 3's to left, and 1's to right
2 1 1 1
3 2 1 1
3 3 2 1

Count should be 6 and count is 6
Total should be 21 and is 21
Total should be 21 and is 21
Largest should be 6 and is 6
Largest should be 6 and is 6
Largest should be 6 and is 6
Largest should be 6 and is 6
Total for column 0 should be 5 and is 5
Total for column 1 should be 7 and is 7
Total for column 2 should be 9 and is 9

Orginal array is:
1 2 3 4
5 6 7 8

New array is:
4 3 2 1
8 7 6 5




C:\Java>

Back to APCS Main Page