摘要:
public class Demo01 { public static void main(String[] args) { /* * 你同桌和你要玩游戏. * 1 剪刀,2 石头,3 布 */ // 判断结果. // 1 剪刀,2 石头,3 布 int a = 1;// 剪刀 int b = 2;// 石头 if (a == 1 && b ==... 阅读全文
摘要:
import java.util.Scanner; public class jh_01_如何认识事物 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // int a = sc.nextInt(); // System.out.println(a); // next; ... 阅读全文
摘要:
import java.util.Random; public class jh_02_生成随机数 { public static void main(String[] args) { // greater than or equal to 0.0 and less than 1.0. // int 阅读全文