Issue Regarding not Importing package for ArrayList
Answered
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 .
Please sign in to leave a comment.
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.