📅  最后修改于: 2022-03-11 14:52:04.032000             🧑  作者: Mango
Try the String(char[], int, int) constructor:
String s = new String(a, 2, 4);
That will construct a String from the characters of array a starting at offset 2 and a length of 4.