This content has been marked as final. Show 2 replies
values[x]=Integer.parseInt(numnum);Where do you create the values array, and what size does it have?
Be sure values contains data.
Then make sure that size = values.length
Either you don't have any data to iterate through, or the size variable is too big. So it's trying to search in parts of the array that don't exist.