initialise empty array java code example Example: java how to initialize an array Click to copyint[] arr = new int[10]; //Can hold 10 elements