摘要: package com.demo.sw.test;public class HungerySingleton { private HungerySingleton(){ } private static HungerySingleton s = new HungerySingleton(); public static HungerySingleton getInstance(){ return ... 阅读全文
posted @ 2011-03-18 23:23 标准小兵 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2011-03-18 23:12 标准小兵 阅读(219) 评论(0) 推荐(0) 编辑