foreach

int[] arr = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};

for (int i : arr) {

  System.out.println(i);

}

猜你喜欢

转载自www.cnblogs.com/ss-123/p/8978605.html