Skip to content

Latest commit

 

History

History
executable file
·
19 lines (14 loc) · 224 Bytes

File metadata and controls

executable file
·
19 lines (14 loc) · 224 Bytes

数组

int[] a = new int[100];

int[] b = {2, 4, 6, 8, 10};

遍历数组

for (int i = 0; i < a.length; i++) {
  System.out.println(a[i]);
}

for (int element: b) {
  System.out.println(element);
}