文章目录 内容翻译解决 原文 The type new Comparator< xxxx >(){} must implement the inherited abstract method Comparator< xxx>.compare(xxx, xxx) 内容翻译 The type xxx must implement the inherited abstract method 这个类必须实现继承的抽象方法 意思: 需要重写指定的抽象方法。 解决 重写方法,可以使用快捷键提示,选择要重写的方法。