import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorldHttpServlet extends HttpServlet
{
public voiddo
Get(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException
{
res.setContentType("text/html");
ServletOutputStream out = res.getOutputStream();
out.println("<html>");
out.println("<head><title>Hello World</title></head>");
out.println("<body>");
out.println("<font size=1>1 Hello World</font><br>");
out.println("<font size=2>2 Hello World</font><br>");
out.println("<font size=3>3 Hello World</font><br>");
out.println("<font size=4>4 Hello World</font><br>");
out.println("<font size=5>5 Hello World</font><br>");
out.println("<font size=6>6 Hello World</font><br>");
out.println("<font size=7>7 Hello World</font><br>");
out.println("<br>");
out.println("<B>Bold</B><br>");
out.println("<B><font size=1>1 Hello World</font></B><br>");
out.println("<B><font size=2>2 Hello World</font></B><br>");
out.println("<B><font size=3>3 Hello World</font></B><br>");
out.println("<B><font size=4>4 Hello World</font></B><br>");
out.println("<B><font size=5>5 Hello World</font></B><br>");
out.println("<B><font size=6>6 Hello World</font></B><br>");
out.println("<B><font size=7>7 Hello World</font></B><br>");
out.println("</body></html>");
}
public String getServletInfo()
{
return "Create a page that says <i>Hello World</i> and send it back";
}
}