摘要: //效率测试 public class TestString2 { public static void main(String[]args){ /**使用String进行字符串的拼接*/ String str8 = ""; long num1 = Runtime.getRuntime().free 阅读全文
posted @ 2022-01-17 15:00 iiuu也一样 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1 public class TestString { 2 public static void main(String[]args){ 3 String str = "abc"; 4 /**StringBuilder*/ 5 StringBuilder sb = new StringBuilder 阅读全文
posted @ 2022-01-10 22:09 iiuu也一样 阅读(18) 评论(0) 推荐(0) 编辑