摘要: import java.util.*; public class new3{ public static void main(String[] ages)throws Exception{ int g,s,b,q,w,hg,hs,hb,hq; Scanner hu = new Scanner(Sys 阅读全文
posted @ 2021-06-22 19:22 一只小狐疑 阅读(34) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class new4{ public static void main(String [] ages){ Scanner sc = new Scanner(System.in); System.out.print("年龄多大了:"); int a 阅读全文
posted @ 2021-06-22 19:18 一只小狐疑 阅读(16) 评论(0) 推荐(0) 编辑
摘要: random:生成一个Int随机数 取值范围:(231)-1 ~ (-231) 调用方法: import java. util.Random 举个栗子: import java. util.Random//导包 util类中的Random public class 文件名{ public stati 阅读全文
posted @ 2021-06-22 11:29 一只小狐疑 阅读(60) 评论(0) 推荐(1) 编辑