Gibson486
Lifer
Java doesn't have pointers; Java has references. Also, in his case he's not even referencing anything outside of the array, because numTimes is simply an integer, and the 1 he's adding to it isn't an offset resulting in the out-of-bounds reference; it's the charAt() method doing it.
whether you like it or not, java does have pointers. Java just hides it from you. so you never have to use it. Proof, think of a Linked List Array, you have to have pointers to do it, or else you cannot go to the next element in the array.