Java
文章平均质量分 87
Voyager3
Engineer from ORACLE, China
展开
-
【设计模式】访问者模式 Visitor pattern
访问者模式的具体实现方法原创 2016-03-16 20:40:19 · 432 阅读 · 0 评论 -
Causing exception while using AlertDialog
Java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.原创 2016-05-01 05:32:39 · 329 阅读 · 0 评论 -
Synchronizing threads in Android/Java
ResumeAs is known to all, we have to use multi-threads to improve the performance in an Android App. Thus, we have to learn how to synchronize different threads as well as transfer data among different原创 2016-05-01 07:25:47 · 314 阅读 · 0 评论 -
设计模式 - 修饰模式 (Decorator pattern) 的 Java 实现 [Preview]
修饰模式(Decorator pattern) ,是面向对象编程领域中,一种动态地往一个类中添加新的行为的设计模式。就功能而言,修饰模式相比生成子类更为灵活,这样可以给某个对象而不是整个类添加一些功能。(维基百科-修饰模式)原创 2015-11-23 00:22:20 · 867 阅读 · 0 评论 -
Detailed Singleton pattern
In software development, multitudes of people use Singleton pattern to restrict the number of instance. It is very useful when we want a class which have only one instance.However, some people do not原创 2016-04-25 05:51:01 · 359 阅读 · 0 评论