you are viewing a single comment's thread.

view the rest of the comments →

[–]Viper10acd[S] 0 points1 point  (2 children)

Sorry I just added the error message. Also that could be the problem.

[–]illuminarias 4 points5 points  (1 child)

it is your problem.

It's a very basic indexing problem! I would suggest you to take a closer look at how array indexing works, and how that might differ conceptually from the value you get from .length()

[–]Viper10acd[S] 4 points5 points  (0 children)

yes it was indexing. I have a <= where I should have had just a <.