Untitled
Darin
plain_text
2 years ago
231 B
8
Indexable
Hai đoạn code sau có cho ra kết quả giống nhau không ?
String string(char[] s) {
return new String(s).trim();
}
String string(char[] s) {
int n = -1;
while (s[++n] != 0)
;
return new String(s, 0, n);
}Editor is loading...