![]() |
Adding array elements
For some reason, the last line doesn't work at all. :confused: I've looked through different forums and kept finding the same code for adding the integers in an array, but nothing happens.
Code:
public static void main(String[] args) |
Re: Adding array elements
array2D is a 2D array and you are adding it like 1D.
|
Re: Adding array elements
I finally figured out that the format of the sum should be similar to the one above it. Thanks for the tip!:happy:
|
| All times are GMT +5.5. The time now is 04:55. |