class can't be instantiated
问题 I have a problem with java applet and graphics. I'm trying to run it in Eclipse and it fails. Im new in java and i hope you can help me. I have two files: Say.java and SayWhat.java. Say.java: public class Say { SayWhat word = new SayWhat("Hello World"); } SayWhat.java: import java.applet.Applet; import java.awt.Graphics; @SuppressWarnings("serial") public class SayWhat extends Applet { Graphics g; String what; public SayWhat(String what) { this.what=what; } public void paint(Graphics g){ g