Ask Question
18 November, 11:32

To use an ArrayList in your program, you must import:1. the java. collections package2. the java. awt package3. Nothing; the class is automatically available, just like regular arrays. 4. the java. util package5. the java. lang package

+5
Answers (1)
  1. 18 November, 13:03
    0
    Option 4: the java. util package

    Explanation:

    Java Array List is not imported by default and therefore we need to import java. util package. Array List is one of the Java predefined collections used to store a group of entities.

    One advantage offered by Array List compared with a normal array is that an item can be dynamically added into the list without recreating a new list. Besides, array list also offered some built in methods to manipulate the elements within the list that can save a project development time.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “To use an ArrayList in your program, you must import:1. the java. collections package2. the java. awt package3. Nothing; the class is ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers