Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
    }
}