摘要: 字符串拼接+和concat的区别 +和concat都可以用来拼接字符串,但在使用上有什么区别呢,先来看看这个例子。 public static void main(String[] args){ String str1="s1"; System.out.println(str1 + 100);//s 阅读全文
posted @ 2022-08-24 15:45 FinallySSR 阅读(80) 评论(0) 推荐(0) 编辑