class Main { public static void main(String[] args) { int[] array = {1, 2}; int x; for (x : array) { System.out.println(x); } } }
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment