3:在做这个类(List <ReceiveAndSendtoClient> Thclients = new ArrayList <ReceiveAndSendtoClient>(); )的集合的时候,发现如果写成
list Al =new ArrayList();
Al.add(new ReceiveAndSendtoClient());
结果我在Al.get()方法中只能取到Object类的方法,可是我想取的是Send方法,请问错在哪了?
4:最弱的一个问题:
我在client里写有一句//(new Mainframe()).LaunchFrame();
但是为什么编译出错呢?提示NO enlosing instance of type c ...
内部类不可以直接在main里做对象?