The error log composes of all the errors that I have run into as I program in JAVA. It lists the name of the problem, the analysis, and the final solution. The goal is to have a comprehensive list that people can refer to at anytime in case the same issue arise.
Error Log
- missing return statement
- analysis: The method signature specified a return type, but no
return
statement appeared in the method body.
- solution: Provide a
return
statement with a value of the specified return type.
- Syntax error, insert ";" to complete BlockStatements
- analysis: A statement was not given a semi-colon as a sign that the line has ended.
- solution: Add a semi-colon to the end of the line.
- Syntax error, insert ")" to complete Expression
- analysis: A bracket was not given to a expression, resulting in its inability to tell when the argument ends.
- solution: Add a closing bracket to show the end of the argument.
- java.lang.ArrayIndexOutOfBoundsException
- analysis: An array starts at 0, and ends one integer below the value returned by the ".length" method.
- solution: Decrease the array index to less than the value returned by the ".length" method.