摘要: int read() : 1.从读取流读取的是一个一个字节 2.返回的是字节的(0-255)内的字节值 3.读一个下次就自动到下一个,如果碰到-1说明没有值了. int read(byte[] b) : int len = read(arr);如果文件上有数据返回的就是读到有效的字节个数,如果文件上 阅读全文
posted @ 2019-10-21 18:22 东邪黄药师 阅读(3044) 评论(0) 推荐(0)
摘要: public class App { public static void main(String[] args) { String str = "123\\n456\\n789\\n"; //字符串"123\n456\n789\n" String[] strs = str.split("\\\\n 阅读全文
posted @ 2019-10-21 14:54 东邪黄药师 阅读(3931) 评论(0) 推荐(0)