摘要: 1 int panel1Height = 25; 2 int panel2Height = 200; 3 int panel3Height = 25; 4 int panel4Height = 150; 5 int panel5Height = 25; 6 int panel6Height... 阅读全文
posted @ 2019-04-30 13:58 无~道 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 创建数组 int[] arr1 = {1, 2, 3, 4}; //创建时给数组附初始值 int[] arr2 = new int[]{1, 2, 3, 4}; //创建时给数组附初始值,第二个[]不能定义数组长度 int[] arr3 = new int[数组长度]; var names = [] 阅读全文
posted @ 2019-04-30 11:22 无~道 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一.Random 类Random类默认的无参构造函数可以根据当前系统时钟为种子,进行一系列算法得出要求范围内的伪随机数.Random rd = new Random();int i = rd.Next([随机范围])+[需要再加上的值];这种随机数可以达到一些要求较低的目标,但是如果在高并发的情况下 阅读全文
posted @ 2019-04-30 10:47 无~道 阅读(37746) 评论(0) 推荐(1) 编辑