array index starts from 0
and you started from 1
, so it would lead to ArrayIndexOutOfBoundException
solved IndexOutOfBoundException when creating an Array from a List [closed]
array index starts from 0
and you started from 1
, so it would lead to ArrayIndexOutOfBoundException
solved IndexOutOfBoundException when creating an Array from a List [closed]