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 encodeByte(byte[] strbyte, String destEncoding) {
        String ret = null;
        try {
            ret = new String(strbyte, destEncoding);
        } catch (Exception e) {
            ret = "byte to " + destEncoding + " error. str=[" + strbyte + "]";
        }
        return (ret);
    }
}