Here you can find the source of utf8String(String... strs)
public static String utf8String(String... strs)
//package com.java2s; //License from project: LGPL import java.nio.charset.Charset; public class Main { public static String utf8String(String... strs) { return new String(String.join("", strs).getBytes(), Charset.defaultCharset()); }//from ww w. ja va 2s .c om }