成人无码视频,亚洲精品久久久久av无码,午夜精品久久久久久毛片,亚洲 中文字幕 日韩 无码

資訊專欄INFORMATION COLUMN

GirlNotFoundException

weknow619 / 2890人閱讀

經(jīng)典梗 哈哈

public class Funny {

    public static void main(String[] args) {
        Coder me = new Coder("my name");
        getGirl(me);
    }

    private static GirlFriend getGirl(Object boy) {
        return new GirlFriend(boy);
    }

    private static class Coder {
        Coder(String name) {
        }
    }

    private static class GirlFriend {
        GirlFriend(Object boy) {
            if (boy instanceof Coder) {
                throw new GirlNotFoundException("Not possible for you XD");
            } else {
                System.out.println("Found");
            }
        }
    }

    private static class GirlNotFoundException extends RuntimeException {
        GirlNotFoundException(String msg) {
            super(msg);
        }
    }

}

文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://m.hztianpu.com/yun/66371.html

相關文章

發(fā)表評論

0條評論

閱讀需要支付1元查看
<