摘要:
JAVA中去掉空格 1. String.trim()trim()是去掉首尾空格2.str.replace(" ", ""); 去掉所有空格,包括首尾、中间String str = " hell o ";String str2 = str.replaceAll(" ", "");System.out.println(str2);3.或者replaceAll(" +",""); 去掉所有空格4.str = .replaceAll("\\s*" 阅读全文
摘要:
当设置成1024 * 1024时,byte[] outPut= new byte[1024 * 1024]出现OutOfMemoryError??内存不足还是改回来byte[] outPut= new byte[4 * 1024] 阅读全文