binary number input in int java

Java
Integer.toBinaryString(int i)
Source

Also in Java: