摘要:
package thread.synchronization; import java.util.Arrays; public class Bank { private final double[] accounts; public Bank(int n,double initialBalance){ accounts = new double[n... 阅读全文
摘要:
package thread; public class TestThree { /** * 线程属性: * 线程优先级,守护线程,线程组,未捕获异常的处理器 * * * 线程优先级 * public static final int MIN_PRIORITY = 1; //最小优先级 * public sta... 阅读全文
摘要:
package generic; public class PairG { T first; T second; public T getFirst() { return first; } public void setFirst(T first) { this.first = first; } publ... 阅读全文