Java Absolute Value Function Equation