摘要: 设置时效:1分钟HttpSession session=ServletActionContext.getRequest().getSession(true); session.setAttribute("random", random); session.setMaxIn... 阅读全文
posted @ 2014-07-15 16:28 行云有影 阅读(143) 评论(0) 推荐(0) 编辑
摘要: int Num=new Random().nextInt(10)+1;new Random().nextInt(10)产生的是0-9的随机数new Random().nextInt(11)产生的是0-10的随机数) 阅读全文
posted @ 2014-07-15 15:54 行云有影 阅读(126) 评论(0) 推荐(0) 编辑