How to compare the minimum values of integers in java map collection
Then you need to loop through this mapping, then compare the values of each and define a variable that receives the minimum value.
The first time you assign a value to this variable, the following loop takes out each value and compares it with his. If it is less than this value, give it to him.
After the cycle is completed, the minimum value is obtained.