HashMap: Exercise

We are given a HashMap which contains stock data.

Problem 1: Find the highest stock price

Find the company with the highest stock price.

Problem 2: Find the average stock price

Find the average stock price of all the companies

Problem 3: Remove companies with stock price below 50

Remove all the companies that have a stock price of fewer than 50 dollars.

Get hands-on with 1200+ tech skills courses.