how to converte string to binary java code example
Example 1: java integer to binary string
int n = 1000;
String s = Integer.toBinaryString(n);
Example 2: int to binary java
String binary = Integer.toBinaryString(num);
int n = 1000;
String s = Integer.toBinaryString(n);
String binary = Integer.toBinaryString(num);