I get the required output.
Thank you Norm.
av8
Type: Posts; User: av8
I get the required output.
Thank you Norm.
av8
The value of the index was not given in the error. The penny dropped with the maximum index of the array.length - 1 ,as the first index is 0. Thankyou.
for(int i = 0; i < oddNumbers.length...
int [] oddNumbers = {1,3,5,7,9};
oddNumbers[0]=oddNumbers[1];
oddNumbers[1]=oddNumbers[2];
oddNumbers[2]=oddNumbers[3];
oddNumbers[3]=oddNumbers[4];
This would...