当对 Iterable 使用外部迭代时,我们使用 break 或者从增强的for-each循环 return ,如下所示: for (SomeObject obj : someObjects) { if (some_condition_met) ...
確定! 回上一頁