- 博客(3)
- 收藏
- 关注
原创 java关键字 break和continue区别
在这里插入代码片 break:switch-case 和 循环结构(结束当前循环),其后不可以声明执行语句 continue: 循环结构(结束当次循环),其后不可以声明执行语句
2022-01-20 09:29:45
142
原创 hive函数 next_day
hive函数-next_day next_day 下周几 next_day (date,char) 取当前天的下一个周一 例子 select next_day(‘2021-12-30’,‘MO’);-- 2022-01-03 下周一 next_day(‘2020-06-14’, ‘mon’) 本周一 date_sub(next_day(‘2020-06-14’, ‘mon’), 7) 上周一 date_sub(next_day(‘2020-06-14’, ‘mon’), 14) 上周日 date_s
2022-01-18 11:52:43
3205
1
原创 java猜数字游戏
题目要求 随机生成一个100以内的正整数,猜数字游戏 从键盘输入数,如果大了提示,大了,如果小了,提示小了,如果对了,就不再猜了,并统计一共猜了多少次 方法一 package com.atguigu.two; import java.util.Scanner; public class test04 { public static void main(String[] args) { int randNum = (int) (Math.random() * 100);
2022-01-18 11:47:48
3747
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人