Question: IntelliJ java You are a recycling truck driver. Youd like to collect some statistics on how much each of the houses on a certain street
IntelliJ java
You are a recycling truck driver. Youd like to collect some statistics on how much each of the houses on a certain street is recycling. Each house has to use crates for their recycling. This street is a little unusual since it only has 8 houses, and the city planner must have been a computer programmer, since the house numbers are 0, 1, 2, 3, 4, 5, 6, and 7. (Hint the house numbers are the same as array element indexes.) Write a program that asks for the number of recycling crates set out by each house. You should store this data in an array.
Suppose the user enteed 10, 20, 14, 20, 5, 7, 5,18.
Here Elements 1 and 3 are the largest houses of the recycling whereas 4 and 6 are having the minimum. Please assist with this programm by using ArrayList or LinkedList.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
