将整数转换为二进制字符串使用Integer.toBinaryString()或Long.toBinaryString()方法:intnum=10;StringbinaryStr=Integer.toBinaryStrin...