2.写出以下程序的功能。import javaio; class FileIODemopublic static void mainString args throws IOExceptionint b;FileInputStream fileIn=new FileInputStreamtestjava; whileb=fileInread!=-1Systemoutprintcharb;
这个程序的功能是读取一个名为"test.java"的文件,并将文件中的内容以字符形式打印出来。
原文地址: https://www.cveoy.top/t/topic/hF0D 著作权归作者所有。请勿转载和采集!