in the Task3 package I synchronized the methods to avoid account corruption

in the Task3 package I synchronized the methods:
public void debosit(double amount){...}
public void withdraw(double amount){...}
the result is:
public synchronized void debosit(double amount){...}
public synchronized void withdraw(double amount){...}
...account data are never corrupted anymore in sample runs.