@@ -0,0 +1,742 @@
+package main.java.servlet;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.ServletOutputStream;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A@WebServlet(%0A        name = %22MyServlet%22,%0A        urlPatterns = %7B%22/hello%22%7D%0A    )%0Apublic class HelloServlet extends HttpServlet %7B%0A%0A    @Override%0A    protected void doGet(HttpServletRequest req, HttpServletResponse resp)%0A            throws ServletException, IOException %7B%0A        ServletOutputStream out = resp.getOutputStream();%0A        out.write(%22hello heroku123%22.getBytes());%0A        out.flush();%0A        out.close();%0A    %7D%0A%0A%7D%0A

Create HelloServlet.java