Java Decimal to Binary dec2bin(Integer str)

Here you can find the source of dec2bin(Integer str)

Description

decbin

License

Apache License

Declaration

public static String dec2bin(Integer str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String dec2bin(Integer str) {
        String num = Integer.toBinaryString(str);
        return num;
    }/*w  w  w .j a v  a  2 s  .c  o  m*/
}

Related

  1. dec2bin(int dec)
  2. decimalToBinaryString(int n)
  3. decimalToBitString(int n, int min, int max)