posted 19 years ago
Hint:
~ is complement of the number In general
~i = - (i + 1); So, ~10 is equal to -1 * (10 + 1) = -11
Similarly ~-10 = -1 * (-10+1) = 9
Let me know if that works for you.
Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.