淨 WPM0
WPM0
準確率100%
已用時間0s
時間—
字符數0
錯誤字符0
錯誤數0
進度0%
大寫鎖定已開啓
閱讀代碼練習指南
- 編程語言
- Java
- 難度
- 中等
Traverse a list and calculate its total.
import java.util.List;
public class Main {
public static void main(String[] args) {
List<Integer> values = List.of(4, 8, 15, 16);
int total = 0;
for (int value : values) {
total += value;
}
System.out.println(total);
}
}