📜  char数组子字符串java代码示例

📅  最后修改于: 2022-03-11 14:52:04.032000             🧑  作者: Mango

代码示例1
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.