Question: Help arraylist java game Help arraylist java 1. Need a game that collects potion 2. game have different place 3. place have different items 4.
Help arraylist java game

Help arraylist java 1. Need a game that collects potion 2. game have different place 3. place have different items 4. items have name and score 5. pick up items adds a weight 6. calculate the number of potion collected 7. Must use of arraylist of items: Item mall[] = { new Item("Jeans", 5), new Item("Phone", 4), new Item("Potion.", 5); Item airport[] = { new Item("Laptop", 8), new Item("Potion", 5); new Item("Banana", 5); Item office[] = { new Item("Printer", 10), new Item("Potion.", 5); new Item("Note", 3); Output sample: Items you have picked up: Item [name=Potion, weight=5] Item [name=Phone, weight=4] Item [name=Laptop, weight=8] Item [name=Potion, weight=5] Item [name=Note, weight=3] Item [name=Potion, weight=5] Total number of potion: 3 Total number of weight: 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
