Arrays and ArrayLists are similar, but not the same. The
differences are important to know
a. Declare an Array of Strings and an ArrayList of Strings.
Highlight the differences.
b. Add one element to each of the previously declared
collections. Highlight the differences.
c. Write a loop to print out each element in the array. What, if
anything, would have to be different to do the same task for the
ArrayList?
d. What happens if you try to add one more element than will
fit? Is the result different for the two types of collections?
Write a method that performs a statistical operation on a set of
integers. You do not know how many integers will be passed into the
method.
Arrays and ArrayLists are similar, but not the same. The differences are important to know a. Declare an Array of String
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Arrays and ArrayLists are similar, but not the same. The differences are important to know a. Declare an Array of String
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!