I'm getting StringIndexOutOfBoundsException when I try to reasign the value of a variable. protString = protString.substring(newRPos+1, input.length());
I understand that this is something I would rather not do... but as I don't know the index of newRPos I can't think of another way to iterate.
Thanks