Can you write a Java class that could be used both as an applet as well as an application?

Yes. Add a main() method to the applet.
 

Search Topics

Popular Posts