title: How do I keep an Int variable positive or 0 in Java
body: <p>I have created a while loop in which a variable's value decreases each time. How do I program the variable such that it's value never goes negative?
  for example if it's currently equal to 3 
  and the input is 5 I want to program it so that 3-5 gives me zero not -2 . </p>