// draw a line across the screen


import java.applet.*;
import java.awt.*;

public class app1 extends Applet {
    
  private int width;
  private int height;
  

   public void init() {
      width = getSize().width;
      height = getSize().height;
      setBackground( Color.black );
   }

   public void paint( Graphics g ) {
      g.setColor( Color.green );
      g.drawLine(0,0,width,height);
     
      }

}