Language/Java
[java] 변수형과 자료형 example
package binary; public class BinaryTest { public static void main(String[] args) { // binary int num = 10; int bNum = 0B1010; int oNum = 012; int hNum = 0XA; System.out.println(num); System.out.println(bNum); System.out.println(oNum); System.out.println(hNum); int num1 = 0B000000000101; int num2 = 0B111111111011; int sum = num1 + num2; System.out.println(num1); System.out.println(num2); System.o..