摘要: 1 StringString:字符串常量,字符串长度不可变。2 StringBufferStringBuffer:字符串变量(Synchronized,即线程安全)。如果要频繁对字符串内容进行修改,出于效率考虑最好使用StringBuffer,如果想转成String类型,可以调用StringBuff... 阅读全文
posted @ 2015-10-17 10:46 阿司★*^_^*联波 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Java provides theStringBufferandStringclasses, and theStringclass is used to manipulate character strings that cannot be changed. Simply stated, objec... 阅读全文
posted @ 2015-10-17 10:35 阿司★*^_^*联波 阅读(175) 评论(0) 推荐(0) 编辑