Sometimes a client will get an error and submit an overflowed value to java.
For example, a value in C++ is submitted to Java through the network, the value is overflowed past 2147483647 lets say, sometimes ending up sending values like -321931298 etc because it went right past the max value. I would like to disgregard this value submitted if it is PAST the max 2147483647 number.
How can you detect overflowed numbers in C++ and Java? I need a idea/example/suggestion for both, (250 points each.)