
数据结构
HUAQINGING
学习ing
展开
-
IO流
二、IO流 1、结构: 字节流:InputStream,OutputStream 字符流:Reader,Writer Reader:读取字符流的抽象类 BufferedReader:将字符存入缓冲区,再读取 LineNumberReader:带行号的字符缓冲输入流 InputStreamReader:转换流,字节流和字符流的桥梁,多在编码的地方使用 FileReader:读取字符文件的便捷类。 W...原创 2019-11-22 16:07:44 · 171 阅读 · 1 评论 -
Collection Map 对比
单列集合Collection 双列集合map Collection(单列集合,只有set 要求元素唯一,数据结构针对元素)和Map(双列集合,键唯一,值可以重复,数据结构针对键) Collection List:有序的;元素可重复,有索引 (add(index, element)、add(index, Collection)、remove(index)、set(index,element)、g...原创 2019-11-22 15:26:38 · 214 阅读 · 0 评论