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 byte2String(byte[] bytes) {
        StringBuffer buff = new StringBuffer();
        for (int i = 0; i < bytes.length; ++i) {
            if (i != 0) {
                buff.append(", ");
            }
            buff.append(bytes[i]);
        }
        return buff.toString();
    }
}