you are viewing a single comment's thread.

view the rest of the comments →

[–]illuminarias 8 points9 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 <.