package wasdev.sample.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class SimpleServlet
 */
@WebServlet("/SimpleServlet")
public class SimpleServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;

    /**
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        response.getWriter().print("Ola Galera!");
    }

}

@@ -1,762 +1,1276 @@
-package wasdev.sample.servlet;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A/**%0A * Servlet implementation class SimpleServlet%0A */%0A@WebServlet(%22/SimpleServlet%22)%0Apublic class SimpleServlet extends HttpServlet %7B%0A    private static final long serialVersionUID = 1L;%0A%0A    /**%0A     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)%0A     */%0A    @Override%0A    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A        response.setContentType(%22text/html%22
+import javax.swing.*;%0Aimport java.awt.event.*;%0A%0Apublic class Calculadora extends JFrame %7B%0A%0A    private static final long serialVersionUID = 1L;%0A%0A    public static void main(String%5B%5D args) %7B%0A        private JButton botaoMais;%0A        private JButton botaoMenos;%0A        private JButton botaoVezes;%0A        private JButton botaoDividi;%0A        private JTextField campo;%0A%0A    public Calculadora() %7B%0A        this.setTitle(%22Exemplo%22);%0A        this.setBounds(0,0,250,250);%0A        this.setDefaultCloseOperation(EXIT_ON_CLOSE);%0A        this.getContentPane().setLayout(null);%0A%0A        botaoMais = new JButton();%0A        botaoMais.setText(%22Soma%22);%0A        botaoMais.setBounds(30,60,60,30);%0A        this.add(botaoMais);%0A%0A        botaoMenos = new JButton();%0A        botaoMenos.setText(%22Subtrai%22);%0A        botaoMenos.setBounds(30,60,60,30);%0A        this.add(botaoMenos);%0A%0A        botaoVezes = new JButton();%0A        botaoVezes.setText(%22Multiplica%22);%0A        botaoVezes.setBounds(30,60,60,30);%0A        this.add(botaoVezes);%0A%0A        botaoDividi = new JButton();%0A        botaoDividi.setText(%22Dividir%22);%0A        botaoDividi.setBounds(30,60,60,30);%0A        this.add(botaoDividi);%0A%0A        campo = new JTextField();%0A        campo.setBounds(40,50,100,30);%0A        this.add(campo
 );%0A
+%0A
         
 resp
@@ -1269,50 +1269,142 @@
     
-response.getWriter().print(%22Ola Galera!%22);
+botaoMais.addActionListener(new ActionListener() %7B%0A            public void actionPerformed(ActionEvent evt) %7B%0A%0A            %7D%0A        %7D
 %0A   
@@ -1409,8 +1409,9 @@
    %7D%0A%0A%7D%0A
+%0A

Update SimpleServlet.java