練習一: 獲取arr數組中所有元素的和。提示:使用for循環的嵌套循環,遍歷即可 ‘ public class Test { public static void main(String[] args) { int[][