So, I have grabbed what I believe Treemap as a String which looks like this:
{Username1={password=password1}, Username2={password=password2}}
How would I go about getting the values ‘Username’ and ‘Username2’ As well as Username1’s Password(password1) and Username2’s Password(password2)? Is there a way to iterate over those values in an array or something like that?
Any help will be appreciated.
Thanks.
TreeMapis an orderedMap. All maps have those 3 methods:If you want to access both in a loop, the best way is through the entryset: