摘要: package thread.syn2; import java.util.Arrays; public class Bank { private final double[] accounts; public Bank(int n,double initialBalance){ accounts = new double[n]; ... 阅读全文
posted @ 2018-02-24 17:52 aLa神灯 阅读(128) 评论(0) 推荐(0) 编辑
摘要: package thread.syn; import java.util.Arrays; import java.util.concurrent.locks.ReentrantLock; public class Bank { private final double[] accounts; private ReentrantLock bankLock = new... 阅读全文
posted @ 2018-02-24 17:51 aLa神灯 阅读(230) 评论(0) 推荐(0) 编辑
摘要: package match; public class TestOne { public static void main(String[] args) { //2015-10-19 08:00:00.0 /*if ("0800000".matches("[0-9]{4,}") == false) { System.out.p... 阅读全文
posted @ 2018-02-24 17:47 aLa神灯 阅读(131) 评论(0) 推荐(0) 编辑