Use break with a foreach(for each) style for. public class ForEach2 { public static void main(String args[]) { int sum = 0; int nums[] = { 1, 2, 3, ...
確定! 回上一頁