... we would like to show you how to calculate the average of an ArrayList in Java. ... System.out.println(average(myArrayList)); // 3.0. } } Output:.
確定! 回上一頁