摘要:
集合框架 List结构的集合类 ArrayList类,LinkedList类,Vector类,Stack类 ArrayList集合类的使用方法(无同步性,线程不安全) [java] view plaincopyprint? //ArrayList --- 实现...
阅读全文
posted @ 2015-11-05 16:16
超宇
阅读(135)
推荐(0)
编辑
摘要:
流的操作规律 之所以要弄清楚这个规律,是因为流对象太多,开发时不知道用哪个对象合适. 想知道开发时用到哪些对象,只要通过四个明确即可 1.明确源和目的 源:InputStream Reader 目的:OutputStream Writer 2.明确数据是否是纯文本数据. 源: 是纯文本 Rea...
阅读全文
posted @ 2015-11-05 15:52
超宇
阅读(126)
推荐(0)
编辑
摘要:
public class InputStreamReaderextends Reader InputStreamReader 是字节流通向字符流的桥梁:它使用指定的 charset 读取字节并将其解码为字符。它使用的字符集可以由名称指定或显式给定,或者可以接受平台默认的字符集。 每...
阅读全文
posted @ 2015-11-05 15:14
超宇
阅读(315)
推荐(0)
编辑
摘要:
/**录入键盘输入字母并将小写变为大写*/import java.io.*;class readin { public static void main(String[] args)throws IOException { InputStream in = System.in;//引入输入流...
阅读全文
posted @ 2015-11-05 14:50
超宇
阅读(317)
推荐(0)
编辑
摘要:
import java.io.*;class copymp3 { public static void main(String[] args) { BufferedInputStream bis = null; BufferedOutputStream bos = null; try ...
阅读全文
posted @ 2015-11-05 11:09
超宇
阅读(154)
推荐(0)
编辑
摘要:
import java.io.*;class copypic { public static void main(String[] args) { FileOutputStream fos = null; FileInputStream fis = null; try { fos ...
阅读全文
posted @ 2015-11-05 10:23
超宇
阅读(179)
推荐(0)
编辑