问题:The type List is not generic; it cannot be parameterized with arguments ...

原因:import java.awt.List;不支持泛型,

解决办法:修改引用import java.util.List;便可解决问题