阅读下段代码importjava.io.*;publicclassExample{publicstaticvoidmain(String[]args)throwsException{FileInputStreamfis=newFileInputStream("file.txt");FileOutputStreamfos=newFileOutputStream("copy_file.txt");intch=0;while((ch=fis.read())!=-1){fos.write(ch);}fos._______;fis.close();}}请说出下划线上,填写的方法名称
举一反三
- 阅读下段代码 import java.io.*; public class Example{ public static void main(String[] args) throws Exception { FileInputStream fis = new FileInputStream("file.txt"); FileOutputStream fos = new FileOutputStream("copy_file.txt"); int ch = 0; while((ch =fis.read())!=-1){ fos.write(ch); } fos._______; fis.close(); } } 请说出下划线上,填写的方法名称
- 阅读下段代码import java.io.*;public class Example{public static void main(String[] args) throws Exception {FileInputStream fis = new FileInputStream("file.txt");FileOutputStream fos = new FileOutputStream("copy_file.txt");int ch = 0;while((ch =fis.read())!=-1){fos.write(ch);}fos._______;fis.close();}}请说出下划线上,填写的方法名称( ) A: write() B: close() C: available() D: read()
- 【单选题】阅读下段代码 import java.io.*; public class Example{ public static void main(String[] args) throws Exception { FileInputStream fis = new FileInputStream("file.txt"); FileOutputStream fos = n
- 阅读下列代码importjava.io.*;publicclassExample{publicstaticvoidmain(String[]args)throwsException{FileInputStreamin=newFileInputStream("itcast.txt");intb=0;while(true){b=in.______;if(b==-1){break;}System.out.println(b);}in.close()}}下列选项中,填写在程序空白处正确的是()
- 【单选题】阅 读下列代码 请说出下划线上,填写的方法名称 () A. read() B. write() C. close() D. available()