Type mismatch: cannot convert from ArrayList to List

java

Solution

incorrect import, it has to be `java.util.List`.

Problem

I have only this, but my compiler says:Type mismatch: cannot convert from ArrayList to List So what is the problem can anyone tell me ? I'm using Elipse Java EE IDE. ``` import java.awt.List; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; public class Main { public static void main(String[] args) { List list = new ArrayList(); } } ```

Original source