The above code would output: 1 2 3 4 5. To iterate through a two dimensional array, you must use nested for loops, like so: for(int i = 0; i < arr.length; ...
確定! 回上一頁