Issue
I am trying the following code in eclipse:
public class A {
List<Integer> intList = new ArrayList<Integer>();
}
However it gives me an error saying: List cannot be resolved to a type and ArrayList cannot be resolved to a type.
Is there some library I need to add and how do I do that?
Solution
You can press Shift+Ctrl+O for auto importing.
Answered By - christian.vogel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.