2017年9月7日
摘要: Provider.java Service.java Services.java Test.java 阅读全文
posted @ 2017-09-07 17:56 力奋 阅读(271) 评论(0) 推荐(0) 编辑
摘要: public enum Elvis { INSTANCE; public void leaveTheBuilding() { System.out.println("Whoa baby, I'm outta here!"); } // This code would normally appear outside the class! public static void ma... 阅读全文
posted @ 2017-09-07 17:48 力奋 阅读(282) 评论(0) 推荐(0) 编辑
摘要: public class UtilityClass { // Suppress default constructor for noninstantiability private UtilityClass() { throw new AssertionError(); } } 阅读全文
posted @ 2017-09-07 17:19 力奋 阅读(233) 评论(0) 推荐(0) 编辑