Guest User

Untitled

a guest
Apr 26th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. int[] ary = {7,12,37,24,2,92,51};
  2. for (int i = 0; i < ary.length; i++) {
  3. System.out.println(ary[i]);
  4. }
  5. // ↓拡張for文を用いて同じ処理↓
  6. for (int e : ary) {
  7. System.out.println(e);
  8. }
Add Comment
Please, Sign In to add comment