bary to decimal java code example
Example 1: int to binary java
String binary = Integer.toBinaryString(num);
Example 2: int to double java
Double d= new Double(i);//first way
Double d2=Double.valueOf(i);//second way
String binary = Integer.toBinaryString(num);
Double d= new Double(i);//first way
Double d2=Double.valueOf(i);//second way