摘要: String类 创建字符串 最简单的创建方法: String str = "Cnblogs"; 用构造函数创建: String str1 = new String("Cnblogs"); String创建的字符串存储在公共池中,而new创建的字符串对象在堆上; String s1 = "Cnblog 阅读全文
posted @ 2023-05-04 20:41 H年轻的心 阅读(21) 评论(0) 推荐(0)