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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!