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 byteToChar(byte[] ucPtr) {
        final StringBuffer sb = new StringBuffer();
        for (int i = 0; i < ucPtr.length; ++i) {
            char c = (char) ucPtr[i];
            sb.append(String.valueOf(c));
        }
        return sb.toString();
    }
}