Contact: aviboots(AT)netvision.net.il
31,166 questions
40,722 answers
573 users
public class MyClass { public static void main(String args[]) { int[] array = {4, 7, 1, 0, 3, 9, 6}; for (int n: array) { System.out.println(n); } } } /* run: 4 7 1 0 3 9 6 */
import java.util.Arrays; public class MyClass { public static void main(String args[]) { int[] array = {4, 7, 1, 0, 3, 9, 6}; System.out.println(Arrays.toString(array)); } } /* run: [4, 7, 1, 0, 3, 9, 6] */