当前位置: 技术问答>java相关
有关按位操作符问题?
来源: 互联网 发布时间:2015-10-17
本文导语: 代码如下: public class BitManipulation { public static void main(String[] args) { pBinInt("9", 9); } static void pBinInt(String s, int i) { System.out.println( s + ", int: " + i + ", binary: "); System.out.prin...
代码如下:
public class BitManipulation {
public static void main(String[] args) {
pBinInt("9", 9);
}
static void pBinInt(String s, int i) {
System.out.println(
s + ", int: " + i + ", binary: ");
System.out.print(" ");
for(int j = 31; j >=0; j--) //代码A
if(((1
public class BitManipulation {
public static void main(String[] args) {
pBinInt("9", 9);
}
static void pBinInt(String s, int i) {
System.out.println(
s + ", int: " + i + ", binary: ");
System.out.print(" ");
for(int j = 31; j >=0; j--) //代码A
if(((1