renamed folders
This commit is contained in:
10
src/exercises/ex_g/TestingSynchronizedStatements.java
Normal file
10
src/exercises/ex_g/TestingSynchronizedStatements.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package exercises.ex_g;
|
||||
|
||||
public class TestingSynchronizedStatements {
|
||||
public static void main(String[] args) {
|
||||
// shared account object
|
||||
Account account = new Account();
|
||||
(new Thread(new BankEmployee("Mrs Fournier", account))).start();
|
||||
(new Thread(new BankEmployee("Mr Schmidhalter", account))).start();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user