how to format the sum two dimensional arrays with formatter?
问题 I have to add the votes per state of the 2008 elections on a 2 dimensional array, but when I run the code it sums only the first row and then keeps adding itself to the previous sum 51 times to the right side like this: State Obama McCain Other Total by state Alabama 813479 1266546 19794 2099819 2426016 72985 etc... Alaska 123594 193841 8762 2099819 2426016 72985 etc... But i needed to add the total votes on each state only once per row. public static void main(String[] args) throws