Postingan

Servlet Dengan Jumlah yang Bisa Ditampung (Client) 5 Secara Bersamaan

/*  * To change this template, choose Tools | Templates  * and open the template in the editor.  */ package siregar.romauli.siregar.servlet; import java.io.*; import java.util.Enumeration; import javax.servlet.ServletException; import javax.servlet.http.*; import siregar.romauli.siregar.thread.*; /**  *  * @author toshiba  */ public class FirstServlet extends HttpServlet {     public int numberOfClients = 5;     public int numberMax = 0;     ProcessThread aThread = null;     /**      * Processes requests for both HTTP      * <code>GET</code> and      * <code>POST</code> methods.      *      * @param request servlet request      * @param response servlet response      * @throws ServletException if a servlet-specific error occurs      * @throws IOException if an I/O error occurs      */     protected void processRequest(HttpServletRequest request, HttpServletResponse response, String str)             throws ServletException, IOExcep

Servlet Dengan Jumlah yang Bisa Ditampung (Client) 5 Secara Bersamaan

/*  * To change this template, choose Tools | Templates  * and open the template in the editor.  */ package siregar.romauli.siregar.servlet; import java.io.*; import java.util.Enumeration; import javax.servlet.ServletException; import javax.servlet.http.*; import siregar.romauli.siregar.thread.*; /**  *  * @author toshiba  */ public class FirstServlet extends HttpServlet {     public int numberOfClients = 5;     public int numberMax = 0;     ProcessThread aThread = null;     /**      * Processes requests for both HTTP      * <code>GET</code> and      * <code>POST</code> methods.      *      * @param request servlet request      * @param response servlet response      * @throws ServletException if a servlet-specific error occurs      * @throws IOException if an I/O error occurs      */     protected void processRequest(HttpServletRequest request, HttpServletResponse response, String str)             throws ServletException, IOExcep

Menambah dan Mengalikan Angka dengan servlet di java

/*  * To change this template, choose Tools | Templates  * and open the template in the editor.  */ package siregar.romauli.siregar.servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /**  *  * @author toshiba  */ public class FirstServlet extends HttpServlet {     /**      * Processes requests for both HTTP      * <code>GET</code> and      * <code>POST</code> methods.      *      * @param request servlet request      * @param response servlet response      * @throws ServletException if a servlet-specific error occurs      * @throws IOException if an I/O error occurs      */     protected void processRequest(HttpServletRequest request, HttpServletResponse response, String str)             throws ServletException, IOException {         response.setCont

Menentukan Bilangan Terbesar dari Bilangan Bulat

/*  * To change this template, choose Tools | Templates  * and open the template in the editor.  */ /**  *  * @author toshiba  */ import java.util.Scanner; public class bilanganbulat {     public static void main(String[] args) {         Scanner input = new Scanner(System.in);         int bilangan;         int Max;         int Counter[];         System.out.print("Masukkan jumlah angka yang ingin diinputkan: ");         bilangan = input.nextInt();         Counter = new int[bilangan];         for (int i = 0; i < bilangan; i++) {             System.out.print("Masukkan angka : ");             Counter[i] = input.nextInt();             Max = Counter[0];             for (int k = 0; k < bilangan; k++) {                 if (Counter[k] > Max) {                     Max = Counter[k];                 }             }             System.out.println("Bilangan Bulat Yang Terbesar : " + Max);         }     } }

Timeboxing Model

Gambar
In the timeboxing model, the basic unit of development is a time box, which  is of fixed duration. Since the duration is fixed, a key factor in selecting the  requirements or features to be built in a time box is what can be fit into the time  box. This is in contrast to regular iterative approaches where the functionality  is selected and then the time to deliver is determined. Timeboxing changes  the perspective of development and makes the schedule a nonnegotiable and a  high-priority commitment. Figure : Executing the timeboxing process model. Timeboxing is well suited for projects that require a large number of features  to be developed in a short time around a stable architecture using stable  technologies. These features should be such that there is some flexibility in  grouping them for building a meaningful system in an iteration that provides  value to the users.

Rational Unified Process

Gambar
RUP proposes that development of software be divided into cycles, each cycle delivering a fully working system. Generally, each cycle is executed as a separate project whose goal is to deliver some additional capability to an existing system (built by the previous cycle). Hence, for a project, the process for a cycle forms the overall process. Each cycle itself is broken into four consecutive phases: – Inception phase – Elaboration phase – Construction phase – Transition phase Figure: The RUP model. One key difference of RUP from other models is that it has separated the  phases from the tasks and allows multiple of these subprocesses to function  within a phase. In waterfall (or waterfall-based iterative model), a phase within  a process was linked to a particular task performed by some process like requirements,  design, etc.