fork download
  1. import java.util.*;
  2.  
  3. class Main {
  4. static int[] array = new int[]{10,11,12,13,14,15,16,17,18,19,20};
  5. public static void main (String[] args) {
  6. for (int i: Arrays.asList(1, 3, 8, 2, 5, 9)) {
  7. System.out.println(array[i]);
  8. }
  9. }
  10. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
11
13
18
12
15
19