摘要:
package com.demo.sw.test;public class HungerySingleton { private HungerySingleton(){ } private static HungerySingleton s = new HungerySingleton(); public static HungerySingleton getInstance(){ return ... 阅读全文
摘要:
package com.demo.sw.test;import java.util.HashSet;import java.util.Iterator;import java.util.Set;/** * * @author Mr.J * */public class NoRepeatNums { public static void main(String[] args) { int [] arr = getNoRepeatNums(3,1,102); for (int i = 0; i < arr.length; i++) { System.out.print(arr[i]+&quo 阅读全文