/*
<applet code =game height = 400 width =400 >
</applet>
*/
import java.awt.* ;
import java.awt.event.* ;
import java.applet.* ;
public class game extends Applet {
public void paint(Graphics g){
System.out.println("done");
}
}
This is my code. I haven't used the repaint function in program but still the output is:
done
done
That is, 'done' is printed twice.