Array Index Out Of Bounds - Java
I have started to work on my first Java program, which is a simple calculator, however I get an error claiming that my array is out of bounds. I have tried to debug it to see where and why that is so, as well as following the code on paper, both of which display the results that I would expect and wish for. Therefore, I can not see where the problem actually lies. The code is not complete. According to the debugger, the error occurs at this line: answer = outputNum.get(operationIndex) * outputNum.get(operationIndex+1); Here is the main part of the code that I currently have: private class