IO流详解(字符流与字节流)

1、字符流与字节流 1.标准的输入输出流概述 标准输入流in: public static final InputStream in   in为System类中的一个静态成员变量,为字节输入流,用来读取键盘录入的数据; 使用:java InputStream is = System.in; //建立InputStream类型的对象 Scanner sc = new Scanner(System
相关文章
相关标签/搜索