想知道这最后一点返回相同的对象有什么解决方法
package zh.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 );
}
}