import javax.swing.*;
import java.awt.event.*;

public class Calculadora extends JFrame {

    private static final long serialVersionUID = 1L;

    public static void main(String[] args) {
        private JButton botaoMais;
        private JButton botaoMenos;
        private JButton botaoVezes;
        private JButton botaoDividi;
        private JTextField campo;

    public Calculadora() {
        this.setTitle("Exemplo");
        this.setBounds(0,0,250,250);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.getContentPane().setLayout(null);

        botaoMais = new JButton();
        botaoMais.setText("Soma");
        botaoMais.setBounds(30,60,60,30);
        this.add(botaoMais);

        botaoMenos = new JButton();
        botaoMenos.setText("Subtrai");
        botaoMenos.setBounds(30,60,60,30);
        this.add(botaoMenos);

        botaoVezes = new JButton();
        botaoVezes.setText("Multiplica");
        botaoVezes.setBounds(30,60,60,30);
        this.add(botaoVezes);

        botaoDividi = new JButton();
        botaoDividi.setText("Dividir");
        botaoDividi.setBounds(30,60,60,30);
        this.add(botaoDividi);

        campo = new JTextField();
        campo.setBounds(40,50,100,30);
        this.add(campo);

        botaoMais.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

            }
        }
    }

}


@@ -1,1276 +1,762 @@
-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
+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
 );%0A
-%0A
         
 bota
@@ -755,142 +755,50 @@
     
-botaoMais.addActionListener(new ActionListener() %7B%0A            public void actionPerformed(ActionEvent evt) %7B%0A%0A            %7D%0A        %7D
+response.getWriter().print(%22Ola Galera!%22);
 %0A   
@@ -803,9 +803,8 @@
    %7D%0A%0A%7D%0A
-%0A

Update SimpleServlet.java