Package data

Examples of data.Bernoulli.asString()


            out.println("<h1>"+title+"</h1>");
            out.println("<p>Bernoulli for N="+n+" is:<br>"+bernoulli.asHtml()+"</p>");
            out.println("</body></html>");
        } else {
            res.setContentType("text/plain");
            out.println(bernoulli.asString());
        }
        out.close();
    }
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        doGet(req, res);
View Full Code Here


            out.println("<h1>"+title+"</h1>");
            out.println("<p>Bernoulli for N="+n+" is:<br>"+bernoulli.asHtml()+"</p>");
            out.println("</body></html>");
        } else {
            res.setContentType("text/plain");
            out.println(bernoulli.asString());
        }
        out.close();
    }
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        doGet(req, res);
View Full Code Here

    public void paint(Graphics g) {
        String sn = tn.getText();
        int n = Integer.parseInt(sn);
        Bernoulli bernoulli = new Bernoulli(n);
        rez.setText(bernoulli.asString());
    }

    public void actionPerformed(ActionEvent ae) {
        repaint();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.