Java Program - Calculating increase or decrease