What should I be looking for in my code when I get this message?
Printable View
What should I be looking for in my code when I get this message?
Whenever you get an error, it should highlight automatically.
you will get that error if you try to put to many numbers in a integer or some other kind variable
Also, look for a non-terminating loop. You generally don't get an overflow error unless you have mistyped a variable (integer instead of long or double) or have a loop that has put too many characters into a variable.
I find this when I am using an Integer for a loop and the loop cannot exit, the counter can exceed the space available. Or perhaps the size you need exceeds it. Long size is -2,147,483,648 to 2,147,483,647, for example and Integer is only -32,768 to 32,767.