11 lines
346 B
Java
11 lines
346 B
Java
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();
|
|
}
|
|
}
|