I’m trying to store all values of a x*y int array into an x length array, but no matter how I do it I end up with various runtime errors. Here is my current code: for(int x=0; x < size.length; x++){ for(int y=0; y < orders; y++){ totalGears[y] += gears[x][y]; } } The purpose of […]
The post How to sum all y values of all x arrays 2d array into a 1d array? appeared first on BlogoSfera.