Java Bootcamp Resources ->
Module 1 ->
6. Arrays, open Workbook 6.4.
Another day, another shift at the Java Grocer.
The workbook starts by asking the user:
>>: Welcome to Java Grocers.
>>: What can I help you find?
Scanner, and pick up the user's response.
for loop, check every element in the array. If there's a match, break the loop and print the aisle (index) that they're looking for.
Aside from adding interactivity, the code should be identical to Workbook 6.3.