Since negative numbers are represented as 2's complement value in Java, you can easily find if any number is the power of 2 or not by looking at its bit pattern ...
確定! 回上一頁