摘要: import java.util.Arrays; /* * The Associated Press won an award for its series on the profiling of Muslims by the New York Police Department. But for the first time since 1977 there was no prize ... 阅读全文
posted @ 2017-02-26 11:47 Focousss 阅读(325) 评论(0) 推荐(0) 编辑
摘要: /* * 7个球: * 红球:[1~33] 6 红球数字不能重复 * 蓝球:[1~16] 1 * 根据输入的注数n,打印出n注双色球 * 要求打印时红球由小到大排序 */ public class DoubleBall { public static void main(String[] args) { //创建Scanner... 阅读全文
posted @ 2017-02-26 10:40 Focousss 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 方法一:根据元素下标删除重复元素/* * 定义一个int数组,大小为10,随机数【1,10】给元素赋值 * 对数组进行排重 */ public class Demo { public static void main(String[] args) { //定义一个长度为10的数组并赋值 int[] arr = new int[10]; ... 阅读全文
posted @ 2017-02-26 10:18 Focousss 阅读(1689) 评论(0) 推荐(0) 编辑