Khadar i tried this code . it gives that exception
for the foll reason : when u give a CLA(command line argument) it will be inserted in the index 0 of the array and then will proceed to 1 2 ....
so as per the question "12345" will be at s[0] . and length of that aray will be 1when u try to access s[1] we are trying for 2nd element which is unavailable.....
hi there the answer for this question of yours will be option (d) because you have not entered any input after 12345 which is only stored in s[0] corresponding to it's string equivalent but as far as s[2] and s[3] are concerned then you have not submitted any input so it will lead to runtime error. supply with inputs after giving space after every input 3 times and hit enter and you will get the result.byeeee