Collections.sort(list,newComparator() { publicintcompare(Integer o1, Integer o2) { retu...
IP屬地:山東
Collections.sort(list,newComparator() { publicintcompare(Integer o1, Integer o2) { retu...
nextint()和nextline()同時使用時,會有沖突。例如 s[0]就是空白,第一次讀int時候,i開始計數(shù)。 加一個 W.nextLine();就可以解決。原因是因...