It seems like the IDE should give you the warnings.
Type: Posts; User: Norm
It seems like the IDE should give you the warnings.
The IDEs must have a way to display warnings about problems in the source code from the compiler that they use. I have no idea what they can do or how to control what they do.
Add a println after every computation to see if they are all working properly.
You need to add this javac option to the javac commandline to get the warning telling you what is wrong: -Xlint
Add some printlns to show the values of the variables used to do the computation so you know if they are good values. Also print out the results.
Use the variable you want to show instead of the 23