97免费在线观看视频,亚洲综合自拍网,黄色毛片免费观看,热久久综合网,免费看日产一区二区三区 狠狠操av,久久久涩涩涩,在线精品免费视频,人人插天天干,久久91精品国产91久久

單項(xiàng)選擇題

public class Score implements Comparable { 
private int wins, losses; 
public Score(int w, int 1) { wins = w; losses = 1; } 
public int getWins() { return wins; } 
public int getLosses() { return losses; } 
public String toString() { 
return “<“ + wins + “,“ + losses + “>”;
} 
// insert code here 
} 
Which method will complete this class?() 

A. public int compareTo(Object o) {/*mode code here*/}
B. public int compareTo(Score other) {/*more code here*/}
C. public int compare(Score s1,Score s2){/*more code here*/}
D. public int compare(Object o1,Object o2){/*more code here*/}

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題