public class Test implements Runnable {
public static void main(String[] args) {
Thread t = new Thread(this);
try {
t.start();
} catch (IOException ioe) {
System.out.println("IOException");
}
}
public void run() throws IOException {
File f = new File("file.txt");
FileWriter fw = new FileWriter(f);
}
}
Login in to like
Login in to comment