Hint: Some useful methods

Recall that Math.abs will give you the absolute value.

The method for getting the sign of a value is Integer.signum.


Cary Gray
Last modified: Mon Dec 2 16:32:23 CST 2013