質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
Thread.sleep(100);
|
32
32
|
|
33
|
-
|
33
|
+
synchronized(other){
|
34
34
|
|
35
35
|
if(amount>value) System.out.println("Not enough money");
|
36
36
|
|
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
}
|
44
44
|
|
45
|
-
|
45
|
+
}
|
46
46
|
|
47
47
|
}
|
48
48
|
|