java how to not set length of array code example Example: set array length java int[] num = new int[5];