09 2016 档案

指定范围的随机整数产生方法
摘要:在实际开发中会经常使用指定范围内的随机整数。借助于数学方法,总结出以下两种指定范围内的随机整数的产生方法。 (1)产生0至n之间的随机整数:Math.floor(Math.random()*(n+1)). (2)产生n1至n2之间的随机整数:Math.floor(Math.random()*(n2- 阅读全文

posted @ 2016-09-13 20:19 JasonTech0713 阅读(437) 评论(0) 推荐(0)

ERROR:The type javax.servlet.http.HttpServletRequest cannot be resolved.
摘要:MyEclipse中附加工程出现如下错误:The type javax.servlet.http.HttpServletRequest cannot be resolved. 解决方法如下: (1)右键工程找到build path项 (2)找到Add Libraries (3)点击myEclipse 阅读全文

posted @ 2016-09-09 22:04 JasonTech0713 阅读(168) 评论(0) 推荐(0)

导航