1. foreach

  1. int inputs[] = new int[]{0, 1, 3, 9, 27, 33, 54, 81};
  2. for (int i: inputs) {
  3. System.out.println(i);
  4. }