2020-01-08:请说说Java中String.length()的运作原理?
Moosphan opened this issue · 6 comments
Moosphan commented
2020-01-08:请说说Java中String.length()的运作原理?
haigendong commented
char array 的长度?不会,来凑个热闹。。
juicelover commented
private final char value[];
public String(char value[]) {
this.value = Arrays.copyOf(value, value.length);
}
public int length() {
return value.length;
}
THEONE10211024 commented
mark
FirewingsR commented
return value.length
zoomc commented
这问题太无聊了,有时间研究这个,不如学学新技术