Binary Numbers in java code example
Example 1: binary numbers java
int binaryNumber = 0b1001;
//binaryNumber == 9
Example 2: binary number input in int java
Integer.toBinaryString(int i)
int binaryNumber = 0b1001;
//binaryNumber == 9
Integer.toBinaryString(int i)