小白入住aide吧#(小乖)大佬进来玩啊
aide吧
全部回复
仅看楼主
level 4
瑜悦🍭 楼主
以后可能有许多问题,望误删
谢谢,做为小白的我把问题放在楼里面
2018年06月14日 01点06分 1
level 13
Toast
2018年06月14日 01点06分 3
👌
2018年06月14日 01点06分
level 12
[滑稽]
2018年06月14日 01点06分 4
level 4
瑜悦🍭 楼主
//获取系统时间.样式
SimpleDateFormat df = new SimpleDateFormat("HH");//设置日期格式
if(df.format(new Date()) >= 12)
{
//提示信息
Toast.makeText(getApplicationContext(),df.format(new Date()),Toast.LENGTH_SHORT).show();
}
//这if判断哪里错误
@贴吧用户_7tJy199
2018年06月14日 02点06分 5
我也不懂[滑稽]
2018年06月14日 04点06分
@贴吧用户_7tJy199 什么意思
2018年06月14日 04点06分
@瑜悦🍭 我也是个小白啊[滑稽]
2018年06月14日 04点06分
@瑜悦🍭 不过等级高了点
2018年06月14日 04点06分
level 4
瑜悦🍭 楼主
int number = new Random().nextInt(10) + 1;
//为什么随机数打包然后直接闪退?

2018年06月14日 07点06分 6
import java.util.Random; //这是类
2018年06月14日 07点06分
把+1前面的括起来试试?
2018年06月14日 11点06分
1