Hi guys,
why doesn't my synchronized block initialize the imf?
What am I doing wrong?
The synchronized block must initialize imf.
Thanks in advance
Fabian
package com.codegym.task.task17.task1707;
/*
IMF
*/
public class Solution {
public static void main(String[] args) {
IMF fund = IMF.getFund();
IMF anotherFund = IMF.getFund();
System.out.println(fund == anotherFund );
}
}