Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
sachin behl wrote:what do you mean by java coding style?!
sachin behl wrote:i know that arrayindexoutofbounds occur when prog needs to access an index which is not in array(eg i=15 in a[10]
that is why i kept the array size 100(i made this change after i got the runtime error...oh and since i want to input the data from i=1 and not i=0, i have i<n+1...
sachin behl wrote:even if i take the value of n as 3 and the size of array as 100,it still shows the runtime error...my question is which part of code is wong?!!
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
sachin behl wrote:I took the size of array like this afterwards..so as to make it large enough so as to prevent the error..