Declare and initialize an ArrayList named denominations that contains exactly six elements of type of Integer.

Declare and initialize an ArrayList named denominations that contains exactly six elements of type of Integer.

LANGUAGE: JAVA

CHALLENGE:

Declare and initialize an ArrayList named denominations that contains exactly six elements of type of Integer.

Your declaration statement should initialize the elements of the array to the following values: 1, 5, 10, 25, 50, 100. (The value 1 goes into the first element, the value 100 to the last.)

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level