import java.util.*;

public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); Integer n =new Integer(num); System.out.println(Integer.toBinaryString(n)); } }

Integer.toString(num); // 将数字转换成字符串 Integer.toBinaryString(num); // 将数字转换成二进制 Integer.toHexString(num); // 将数字转换成八进制 Integer.toOctalString(num); // 将数字转换成十六进制