Java Absolute Value Function Transformations