Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static String getStringFromByte(byte[] bytes) throws UnsupportedEncodingException { return new String(bytes, "UTF-8"); } }