Hi Munish, The answer is in the API; check <code>java.lang.Math.abs(Integer)</code>
Note that if the argument is equal to the value of Integer.MIN_VALUE, the most negative representable int value, the result is that same value, which is negative.
To get the desired effect. Cast it to long first. For instance, Math.abs((long)Integer.MIN_VALUE) will return 2147483648. The absolute value of the MIN_VALUE exceeds the stoarge capacity of the type so by increasing the capacity, you're able to get the absolute value.
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
a bit of art, as a gift, that will fit in a stocking