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 getBinString(byte paramByte) {
        String str = "";
        for (byte b = 0;; b++) {
            if (b >= 8)
                return str;
            int i = 0x1 & (0x80 & paramByte << b) >> 7;
            str = String.valueOf(str) + i;
        }
    }
}