Last active
September 15, 2018 10:31
-
-
Save jeongwhanchoi/1355dbc065c91333f50d5999c6b7cbfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AddServlet extends HttpServlet | |
| { | |
| protected void doGet(HttpServletRequest req, HttpServletResponse res) | |
| { | |
| int i = Integer.parseInt(req.getParameter("t1")); | |
| int j = Integer.parseInt(req.getParameter("t2")); | |
| int k = i + j; | |
| PrintWriter out = req.getWriter(); | |
| out.print(k); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment