下面的( ) 代码加到doGet() 方法中,可以正确的计算一个用户的GET请求?
选项:
A:HttpSession session = request.getSession();Int count = (int) session.getAttribute("count");Session.setAttribute("count", count++);
B:HttpSession session = request.getSession();Int count = ((Integer) session.getAttribute("count")).intValue();Session.setAttribute("count", count++);
C:HttpSession session = request.getSession();Int count = session.getAttribute("count");Session.setAttribute("count", count++);
D:HttpSession session = request.getSession();Int count = ((Integer) session.getAttribute("count")).intValue();Session.setAttribute("count", new Integer(count++));"
发布时间:2024-06-02 09:55:17