最新回答 / qq_慕雪3265783
接口中確實不能有方法的實現,但可以進行接口回調,比如我定義一個human接口和一個young類,interface human{void Output();}class young implements human{????public young(){}????public void Ouput(){}}human h=new young();h.Output();這樣做是可以的,
2019-07-30
最贊回答 / 安守那一份思念
Course temp3=(Course)coursesToSelect.get(2); Course temp4=(Course)coursesToSelect.get(3);出現了錯誤
2019-07-28
最新回答 / franzhe
pokerList.add(new Poker(pokerType[j],pokerNum[i]));? ?// i,j 位置換下?public Player(String id,String name){this.id = id;this.id = name;? ?//這里也不對handPokerList = new ArrayList<Poker>();}createGame 方法 里的比較似乎不對
2019-07-26
最新回答 / LuckyBOY_8
表示,還是沒看懂,是俺太笨了。
最贊回答 / 慕仙4469632
你寫的有點錯誤,我寫了下public void testSort3() { List<String> listString = new ArrayList<String>(); Random r1 = new Random(); String s = new String(); for(int i=0;i<10;i++) { do { Integer k = r1.nextInt(10); s = randomString(k); } while...
2019-07-22