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开始计数。 加一个 W.nextLine();就可以解决。原因是因...