1.案例 1.1.需求 保证account.withdraw()取款方法的线程安全; 1.2.代码实现 public class TestAccountDemo1 { public static void main(String[] args)