Draw a line and rectangle in Java Applet

import java.awt.*;
import java.applet.*;
public class linerect extend Applet
{
 public void paint(Graphics g)
{
   g.drawLine(20,20,60,60);
   g.drawRect(20,70,50,40);
   g.fillRect(70,20,40,90);
   g.drawRounder(20, 100, 80, 50, 10, 10);
   g.fillRounderRect(20, 110, 60, 30, 5, 5);
   g.drawLine(100,10,250, 150);
   g.drawLine(100,150,150,10);
}
}

<html>
   <head>
   </head>
   <body>
         <applet code = "linerect.class" width = "600" height = "400"></applet>
   </body>
</html>