import java.io.*;
class test{
public static void main(String[] args)throws IOException
{
FileWriter fw = new FileWriter("test.txt");
String a = "hello!\n";
int i;
for(i = 0;i<10;i++){
fw.write(a,0,a.length());
}
fw.flush();
}
}
请问上面程序中 throws IOException 是什么意思?起什么作用呢?
谢谢!