public class ThreadSafeTransferMoney {
public static final Object tileLock=new Object();
public void transferMoney(Account fromAccount, Account toAccount){
int fromHash=System.identityHashCode(fromAccount);
int toHash=System.identityHashCode(toAccount);