作业帮 > 综合 > 作业

for (Goods goods :goodsSet) { goods.setBrand(null);} 尤其小括号里

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/06/05 21:56:46
for (Goods goods :goodsSet) { goods.setBrand(null);} 尤其小括号里
for (Goods goods :goodsSet) { goods.setBrand(null);} 尤其小括号里
jdk 1.5中新语法.就是遍历list或者set或者数组用的.
你可以理解成这样
for(int i=0;i