public class var01 {
//编写一个main方法
public static void main(String[] args) {
//n1 二进制
int n1 = 0b1010;
//n2 10 进制
int n2 = 1010;
//n3 8 进制
int n3 = 01010;
//n4 16 进制
int n4 = 0X10101;
System.out.println("n1=" + n1); //n1=10
System.out.println("n2=" + n2); //n2=1010
System.out.println("n3=" + n3); //n3=520
System.out.println("n4=" + n4); //n4=65793
System.out.println(0x23A);
}
}
}