>
数学
>
session.setattribute("rd",new Random().nextInt(100))
解释这句意思
人气:446 ℃ 时间:2020-07-29 17:28:07
解答
session.setAttribute()知道两个参数可以理解为key,value(键值对)
将value的值存入key字符中.
取出来的时候session.getAttribute(key)取得key对应的value值
new Random().nextInt(100), 0-100之间的数存入"rd字符串中"
session.getAttribute("rd")取得的就是0-100之间的数(取出来是object类型,需要强转)
推荐
Random rn=new Random(); rn.nextInt()&1024//这行什么意思
Random.nextInt()生成负数?为什么
Random randomobj=`new Random();
requset.setAttribute() session.setAttribute() aplication.setAttribute()
计算(0.16x^4y^3-1/5x^5y^4-3/10x^5y^2)/(-0.4x^3y^2
枕月而眠阅读答案
《骆驼祥子》中那些是对祥子人物描写的句子或段落?根据句子写人物分析
9.2:2.05它的比值是多少
猜你喜欢
八年级语文课文 散步
如果a、b互为相反数,c、d互为倒数,e的绝对值等于1,求(a+b/c)^2002+e^2002-cd
This must be the best way to get exercise...to fight against your alarm clock It is a great and
已知方程组3x+2y=m+12x+y=m-1,求使x>y的m的最小整数值.
_____ I met him,i thought he was a serious man.
关于直线与圆的关系
求方程2*(5X+4)-14=3*(6-4X)的解
随着水温度的降低,水分子间的间隙是否会随之减小
© 2026 79432.Com All Rights Reserved.
电脑版
|
手机版