"<h2><center>" + title + "</h2></center>\n"+
"<h2><center>" + title + "</h2></center>\n"); int totalAgents = agents.size(); int nPages = (totalAgents + MAX_AGENT_FRAMES - 1) / MAX_AGENT_FRAMES; String[] menu = null; if (nPages > 1) { menu = new String[nPages]; for (int page = 0; page < nPages; page++) { int nagents; int agent0; agent0 = (page * totalAgents + nPages - 1) / nPages; nagents = (((page + 1) * totalAgents + nPages - 1) / nPages) - agent0; String item = "Agents " + ((String) agents.get(agent0)) + " Through " + ((String) agents.get(agent0 + nagents - 1)); menu[page] = item; } } String thisPage = request.getParameter("thisPage"); printThresholdAndRefreshForm(out, agents, menu, thisPage); out.println(
    private void viewTitle() throws IOException {      String title = request.getParameter("title");      response.setContentType("text/html");      out = response.getWriter();      format = FORMAT_HTML;     // Force html format      out.println(          "<html>\n" +          "<head>\n" +          "<title>" + title + "</title>\n" +          "</head>\n"+          "<body>\n"+          "<h2><center>" + title + "</h2></center>\n"+          "</body>\n"+          "</html>");    }