/*A simple Java program that illustrates simple I/O for a browser form */

public class sampleJavaProg {
  /**
   * Print the string "Hello world." to standard output.
   */
  public static void main(String[] args) 
         throws Exception {

      /********************** html/browser header ************************/ 

      System.out.println("Content-type: text/html");
      System.out.println();
      System.out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
      System.out.println("<html>");
      System.out.println("<head>");
      System.out.println("<meta http-equiv=\"Content-Type\" content=\"text/html;  charset=ISO-8859-1\">");
      System.out.println("<title>");
      System.out.println("Lab Example");
      System.out.println("</title>");
      System.out.println("</head>");
      System.out.println("<body>");

      /*******************************************************************/
      /* the main text for the page */

      System.out.println("Welcome to the world of Internet programming!");
      System.out.println("<br>");
      System.out.println("<i>This page is created by a Java program.</i>");

      /********************** html/browser footer ************************/ 

      System.out.println("</body>");
      System.out.println("</html>");

  } // main(String[])
} // sampleJavaProg
