- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 String字符串用法集合
一.字符串内容不可更改当连接两个字符串的时候,改变的是字符串的形,而地址是不可更改的比如:str1 = “hello”,str2 = “World”,则连接str1和str2之后的运行结果为helloWorld,但是一共开辟了3个内存空间,str1,str2,以及连接之后。
2017-03-01 20:32:29
1371
原创 包装类-字节数组-字符数组间的转换
1.字符串与基本数据类型、包装类之间的转换① 字符串--->基本数据类型、包装类:parseXxx(String str);public class TestString {public static void main(String[] args) { // TODO Auto-generated method stub String str = "12345"; /
2017-02-24 17:05:22
810
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人