The intent of the builder Pattern is to separate the construction of complex object from its representation,so that the same construction process can create different representation. Adding a new implementation (i.e adding a new builder) becomes easier, the object construction process becomes...【阅读全文】
看了点JAVA的多线程,有点意思。访问线程共享变量,加上synchronized 就可以了。点击(此处)折叠或打开public class ThreadTracker { private int threadsRunning=0; public synchronized void setT...【阅读全文】