学习日报

分支结构 if分支语句

https://cloud.189.cn/t/FBzQbeRnYFbi

java包的基本使用

java包的基本使用_pyhui的技术博客-****博客
https://blog.****.net/ifubing/article/details/107625663
包相当于是文件夹包的功能,防止文件重名
包的层级节构规范
包的层级节构规范_pyhui的技术博客-****博客
https://blog.****.net/ifubing/article/details/107625838
什么是选择结构
生活中的选择结构
如果张浩的Java考试成绩大于98分,张浩就能获得一个MP4作为奖励
如果体温高于37.2度,不允许乘坐公交车
上班赶时间,地铁OR出租车
流程图的基本使用
流程图的绘制与图形_pyhui的技术博客-****博客
https://blog.****.net/ifubing/article/details/107820050
生成随机数
生成随机数 java_pyhui的技术博客-****博客
https://blog.****.net/ifubing/article/details/107817206
生成0-1之间的小数
Math.random()
生成0-9之间的整数
(int)(Math.random()(9+1))
生成0-n之间的整数
int num=(int)(Math.random()
(n+1);
生成a到b之间的整数
int num=a+(int)(Math.random()*(b-a+1));学习日报

生活中的选择结构

如果张浩的Java考试成绩大于98分,张浩就能获得一个MP4作为奖励
如果体温高于37.2度,不允许乘坐公交车
上班赶时间,地铁OR出租车

流程图的基本使用

流程图的绘制与图形_pyhui的技术博客-****博客
https://blog.****.net/ifubing/article/details/107820050
生成随机数

生成随机数 java_pyhui的技术博客-****博客

https://blog.****.net/ifubing/article/details/107817206

生成0-1之间的小数

Math.random()

生成0-9之间的整数

(int)(Math.random()*(9+1))

生成0-n之间的整数

int num=(int)(Math.random()*(n+1);

生成a到b之间的整数

int num=a+(int)(Math.random()*(b-a+1));