Re: [android-developers] weird java.lang.StringIndexOutOfBoundsException error

2016-06-18 Thread TreKing
On Thu, Jun 16, 2016 at 4:33 PM, Aaron Shavolian wrote: > The error only occurs when you press the button. Making the Program crash. You're going outside the bounds of one of your strings. For example, trying to access item at position 10 of the word "dog" is invalid.

[android-developers] weird java.lang.StringIndexOutOfBoundsException error

2016-06-16 Thread Aaron Shavolian
Disclaimer: I'm a beginner straight out of AP Computer Science. I'm trying to make an app that converts text input from the user into pig latin... For practice. Here's my code: package com.example.ashavolian.piglatin2; import android.content.DialogInterface; import