You could also use the entrySet which gives you all the key/value pairs. -- Richard
On 17.10.2013, at 16:43, <[email protected]> wrote: > Hi Thomas, > > thanks for your answer. Using HashMap, does the n-th element of keySet() > always corresponds to the n-th element of values()? Is this a defined > behavior in Java? > > Cheers, > Armin
