🌈 搜索
📅  最后修改于: 2022-03-11 14:52:49.056000             🧑  作者: Mango
int [] arr = {1,2,3,4}; int sum = Arrays.stream(arr).sum(); //prints 10