最新回答 / 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