I would like to find the biggest number in HashSet and HashMap. Say I have the number [22,6763,32,42,33] in my HashSet and I want to find the largest number in my current Ha
try
int max = Collections.max(set); int maxKey = Collections.max(map.keySet()); int maxValue Collections.max(map.values());