摘要: import java.util.Arrays;import java.util.Collection;import java.util.Comparator;import java.util.List;/** * @name Sort * @author 那十无忧 * @date Feb 23, 2012 - 7:24:22 PM */public abstract class Sort{ private static final Sort[] instances; static { instances = new Sort[Type.values(... 阅读全文
posted @ 2012-02-23 19:01 那时无忧 阅读(483) 评论(0) 推荐(0)
摘要: 中文版还没怎麽测试,如有问题请您告知 raistlic@gmail.com ,谢谢! import java.util.EnumMap; import java.util.HashMap; import java.util.Map; /** * This class transfers an integer number into a string : * <p /> * <pre>{@code * // an example : * NumberText ns = NumberText.getInstance(NumberText.Lang.English); * n 阅读全文
posted @ 2012-02-15 14:37 那时无忧 阅读(2268) 评论(0) 推荐(0)
摘要: 在java吧里看到这个问题,近来有空就写了写import java.util.EnumMap;import java.util.Map;/** * This class transfers an integer number into a string : * <p /> * <pre>{@code * // an example : * NumberText ns = NumberText.getInstance(NumberText.Lang.English); * ns.getText(123) // one hundred and twenty-three * 阅读全文
posted @ 2012-02-14 08:35 那时无忧 阅读(228) 评论(0) 推荐(0)
摘要: 代码实例: 一个类型安全的过滤器 1 import java.util.ArrayList; 2 import java.util.Arrays; 3 import java.util.Collection; 4 import java.util.List; 5 6 /** 7 * A sample usage : 8 * <code><pre> 9 * Filter.Checker&lt;Object&gt; checker = new Filter.Checker&lt;Object&gt;() {10 * public boolea 阅读全文
posted @ 2011-12-22 07:32 那时无忧 阅读(186) 评论(0) 推荐(0)
摘要: 1 public class DayOne {2 public static void main(String[] args) {3 System.out.println("Hello CNBlog!");4 }5 } 阅读全文
posted @ 2011-12-20 15:52 那时无忧 阅读(117) 评论(0) 推荐(0)