[java] How to determine if a number is positive or negative?