I know about CharBag bag = CharAdapter.adapt("hello world!").toBag();
it's nice, but it's not linked.
I need bag with linked input string and how can i get keys and values from this collection to make output like:
h 1
e 1
l 3
o 2
1
w 1
r 1
d 1
! 1