Java tutorial
//package com.java2s; public class Main { public static String IntToBitSetString(int value) { StringBuilder sb = new StringBuilder(); while (value > 0) { sb.append(value % 2); value = value >> 1; } return sb.toString(); } }