Question: Create a shopping list array (1D) of Strings. First ask the user how many items are on their list and use that to create the
Create a shopping list array (1D) of Strings. First ask the user how many items are on their list and use that to create the correct size array. Then use a for loop to fill in the items. Finally, use a for each loop to print out the items on one line with a , between them. It is ok if there is a , after the last item.
Scanner scan = new Scanner(System.in);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
