public class Arrays { public static void main(String[] args) { int[] a = new int[5]; //int[] b = new short[5]; //char[] c = new int[5]; int[] d = new int[]{1, 2, 3, 4, 5}; char[] e = {1, 2, 3}; boolean[] f = new boolean[]{true, false}; //int[] g = new int[2]{1, 2}; String[] h = {}; //int[][] i = {{'a', 'b'}, 'c', 'd'}; int[][] j = {{ 1, 2}, new int[2], {} }; //double[] k = new {1.0, 0.2}; double[] l = new double[]{'A'}; //double[] m = new double[]{1; 2; 3}; char[][] o; //o = {1, 2, 3}; int[] p, q; p = q = new int[]{1, 'B', 3}; //int r = {1, 2, '3'}; Object[] o23 = {"Hello", 1, false}; for (Integer el : p) System.out.println(el); } }