Hi. I have an applet - save.class. This code should work (i think) but the java compiler is giving me an error. What is wrong with my coding?
Code:
import java.awt.*;
import java.applet.*;
import java.io.*;
public class save extends Applet
{
BufferedWriter out = new BufferedWriter(new FileWriter("hi.txt"));
out.write("this should save in hi.txt");
out.close();
}