The reason you get the ambiguous message is because there is a List class in the java.awt class. and "java.util." packages that are at the top of the import list.
To solve this problem, you should choose one of them, which is most likely used in the application (I would suggest java.awt.List.
In eclipse, if you do "CTRL + SHIFT + o" (it's not zero), it will reorganize your imports. From there you can select java.awt.List.
source share