求解hello方法在java.lang.String報(bào)錯(cuò)的解決方法
OneInterface oif=new OneInterfaceImpl(); ? ? System.out.println(oif.hello("word:")); 我這個(gè)執(zhí)行以后拋錯(cuò),Error:(6, 31) java: 找不到符號(hào) ?符號(hào): ? 方法 hello(java.lang.String) ?位置: 類(lèi)型為com.imooc.ioc.interfaces.OneInterface的變量 oif 求大佬們幫解決哪里問(wèn)題,卡了好幾天在這
2020-04-11
完整代碼呢