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