Issue Regarding not Importing package for ArrayList
已回答
when I enter ArrayList<> it shows error it implicity shows
public class ArrayList { public static void main(String[] args) { java.util.ArrayList<Integer>List=new java.util.ArrayList<>(5); }}
rather than importing java.util.ArrayList package .
请先登录再写评论。
Hi Durgabandi01, can you share a screenshot of the issue? Your file is named ArrayList, which may shadow the correct java.util.ArrayList class name.