public class Spaltensumme{ public static void main(String[] args) { int[][] array = {{0,1,2,3,4}, {5,6,7,8,9},}; int i = 0; int j = 0; for(j=0;j<array[i].length;j++) { for(i=0;i<array.length;i++) { System.out.println(array[i][j]); } } }}