Question: create a java program that does the following: 1.that asks user to input items (string) they would like to keep in their bag 2. a
create a java program that does the following:
1.that asks user to input items (string) they would like to keep in their bag
2. a separate search function not in main that allows user to search for string
3.Dont use static inventory
4. ask user how many items they want to add
Add code to following underneath
import java.util.ArrayList;
import java.util.Scanner;
public class Inventory {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("How many items to add:");
int a = sc.nextInt();
ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
