Java Data Type How to - Convert decimal integer to binary integer


We would like to know how to convert decimal integer to binary integer.


/*  w w w. j  av a  2  s  .  co m*/
import java.util.Enumeration;
import java.util.Vector;

class WrapperDemo {
  public static void main(String[] args) {
    System.out.println("16055 in binary: " + Integer.toBinaryString(16055));