posted 4 years ago
What puzzles me is the following: the outcome, a Collection of Integers, is the result of String.valueOf(a1.values()).
In this is a1 the HashMap that OP talks about in his opening post. Given the result, the keys must have been h, e, l and o (no duplicates). So, how come an output of five integers? Wonder what the code looks like, as Joao asked.
There are three kinds of actuaries: those who can count, and those who can't.