import javax.servlet .*;
import java.io.*;
public class HelloworldServlet implements Servlet
{
public void Servlet(ServletRequest request, ServletResponse response) throws IoException, ServletException
{
response.setcontenttype( text/html );
printwriter out = response.getwriter() ;
out.println("<html>");
out.println("<body BGCOLOR=yellow>");
pout.println("<H1>HelloWorld</h1>");
pout.prinlnt("</body><html>");
out.close();
{
public void init(ServletConfig config) throws servletexception
{
}
public void destroy()
{
}
public string getServletInfo()
{
return null;
}
public ServletConfig getServletConfig()
{
return null;
}
}}}