当我们仅仅需要a+b 的时候,两个字符串链接任何方法的效率基本一样,都在0.0001毫秒内就可以完成。不过如果需要1万次,10000万次,就会发现string自身的join速度显著下降
package com.java.lang;
public class StringTest {
int MAX = 10000; //1万次累加
public String Buffer(){
StringBuffer sb = new StringBuffer();
More
Warning: Undefined variable $max_page in /backup/www/javaer.com/blog/wp-content/themes/yuexiaosheng/functions.php on line 139