I`m trying to write a sample program in java, but the book doesn`t explain how I should write my html code to execute it, I don`t even know what I should use to write a HTML code, I looked online, but didn`t find much.
this is the java code:
import java.awt.Graphics;
import javax.swing.JApplet;
class WelcomeApplet extends JApplet
{
public void paint (Graphics g)
{
super.paint (g);
g.drawString ("Welcome to Java Programming!", 25, 25);
}
}
and this is the HTML:
<html>
<applet code = "WelcomeApplet.class" width - "300" height - "45">
</applet>
</html>
Thanks