132

String是一个很普通的类

 6 years ago
source link: https://juejin.im/post/59cc48fe5188256aa423b82e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
上一篇我们讲了Java中的数组,其实是为本章的内容做准备的,String这个类是我们在写Java代码中用得最多的一个类,没有之一,今天我们就讲讲它,我们打开String这个类的源码:声明了一个char[]数组,变量名value,声明了一个int类型的变量has

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK