is it necessary to take input in array from index 0 in java code example Example: set array length java int[] num = new int[5];