Here you can find the source of decimalToBinaryString(int n)
public static String decimalToBinaryString(int n)
//package com.java2s; //License from project: Apache License public class Main { public static String decimalToBinaryString(int n) { return Integer.toBinaryString(n); }//from w ww. j a v a 2 s.c o m public static String decimalToBinaryString(long n) { return Long.toBinaryString(n); } }