The next five questions refer to the following String elements: [It, was, a, stormy, night] Write the

Question:

The next five questions refer to the following String elements:

["It", "was", "a", "stormy", "night"]

Write the code to declare an ArrayList containing these elements. What is the size of the list? What is its type?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: