摘要: 算法:概率重组 package com.Algorithm; //需求使概率不一致的两种情况,概率一致 public class Problitiy { public static int zuo1(){ return Math.random()<0.87?0:1; } //你要始终明白;这里要强迫 阅读全文
posted @ 2022-04-23 17:36 爱豆技术部 阅读(62) 评论(0) 推荐(0)
摘要: 枚举案例: package com.eron; public class Test { public static void main(String[] args) { Sex sex = Sex.女; switch (sex){ case 女: System.out.println("我是一个女生 阅读全文
posted @ 2022-04-23 16:44 爱豆技术部 阅读(35) 评论(0) 推荐(0)