Using the
evenNumbers ArrayListcreated in the previous exercise, provide a code fragment that stores the first 10 even numbers in the
evenNumbers ArrayList.In other words, put 0 in the first
evenNumberselement, put 2 in the second
evenNumberselement, and so on…, until 18 is put in the tenth
evenNumberselement. You must use a standard
forloop for your code fragment.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.