看板 java 關於我們 聯絡資訊
※ 引述《qrtt1 (隱者)》之銘言: : 是ptthuge throw了 妹正不正的例外給俺, : 俺只是忠實地再丟出去了一下咩..xd : by local q : ※ 引述《PsMonkey (痞子軍團團長)》之銘言: 妹正也沒用: public void TeachingProcess(PTT_Villager zanyking) { if(zanyking instanceof JavaMaster) { if(zanyking.wantGirlFriend()&& zanyking.getFace().equals(Face.UGLY)) { throws new GoodManException("You Are A Good Man~~~"); } // } else throw new IllegalArgumentException(); } -- JAVA 是一個靜態型別reference指定、強物件型別判定的語言。 屬於類C/C++族。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.85.116.116