Java InputStream类案例
提问人:刘旭39发布时间:2020-11-28
import java.io.FileInputStream;
import java.io.InputStream;
//InputStream类
public class InputStreamDemo {
public static void main(String[] args) {
try {
InputStream inputStream = new FileInputStream("Date.Json");
System.out.println("创建输入流:"+inputStream.toString());
System.out.println("输入流读取字符:"+inputStream.read());
inputStream.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>