![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
区别
文章平均质量分 75
GuiYee
这个作者很懒,什么都没留下…
展开
-
面试高频——“区别”
十大原创 2021-08-12 09:23:28 · 104 阅读 · 0 评论 -
String和它的“小伙伴们”!,String、StringBuffe、StringBuilder三者区别?
String类 String对于大家来说都不陌生,相信大家能够完全熟练运用String类的相关定义。本文主要就String类中的方法以及定义做详细的介绍。 1、字符串定义的四种方式 String str = "hello"; String str1 = new String{"hello"}; char[] array = {'a','b','c','d'}; String str2 = new String(array); String str3 = new String(array,1,2);原创 2021-04-23 15:57:32 · 114 阅读 · 0 评论