The value cannot be more than MAX_VALUE so the previous condition was never met. Additionally use MAX_QUANTITY constant instead of abusing char max value which is completely unrelated.
The value cannot be more than MAX_VALUE so the previous condition was never met. Additionally use MAX_QUANTITY constant instead of abusing char max value which is completely unrelated.