Question: Q. Count the repeated(same) person's value in total and in a file using hashmap in JAVA. //read repeated word and calculate the total value. In
Q. Count the repeated(same) person's value in total and in a file using hashmap in JAVA. //read repeated word and calculate the total value. In the file using HashMap in Java// sample is given Output . Smith 125
Marnus 101
Root 95
Colin 75
Root 80
Smith 50
Kohli 70
Smith 0
Root 180
sample Output:
Smith = 175 Marnus 101 Root = 355 Colin 75 Kohli 70
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
