![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java开发
leomahaha
这个作者很懒,什么都没留下…
展开
-
char数组和String互相转换
String str=” “; //创建一个字符串变量str char[] c; //创建一个字符数组c c = str.toCharArray(); //将字符串变量转换为字符数组 str= String.valueOf(c ); //将字符数组转换为字符串...原创 2018-04-28 17:05:32 · 27771 阅读 · 0 评论 -
String的==、equals、intern()
“` public class HelloWorld { public static void main(String []args) { String s1=”Hello World!”; String s2=new String (“Hello World!”); String s3=”Hello”+” World!”; ...原创 2018-04-29 23:50:52 · 170 阅读 · 0 评论