[Solved] Why is indexOf returning an incorrect index? [closed]


l2FileNAme: scenario8_items.txt

Counting the characters on the screen, the . is in the 16th place, which is 15 in a zero-based indexing. You’re performing this on l2.

Seems like the correct output to me.

solved Why is indexOf returning an incorrect index? [closed]