240 发简信
IP属地:宁夏
  • Collections.sort

    Collections.sort(list,newComparator() { publicintcompare(Integer o1, Integer o2) { retu...

  • 120
    Scanner 使用

    nextint()和nextline()同时使用时,会有冲突。例如 s[0]就是空白,第一次读int时候,i开始计数。 加一个 W.nextLine();就可以解决。原因是因...