Ad
  • Custom User Avatar

    Remember marking your post as having spoiler content when you post code like that.

  • Custom User Avatar

    Check your stacktrace - it tells you that fails on this line: int one = (int)temp[0];

    Add some println to prove for yourself that

    • Fails on first test, which is empty string "",
    • where arr.length is 1 [""],
    • so temp.length is 0,
    • so temp[0] is out of bounds...