I would like filter ArrayList by spotting the similar items positions in ArrayList so I can get the index position of duplicate items.
With a list like:
List = ['A', 'B', 'A', 'C', 'E', 'A']
I want it to give me:
index [0, 2, 5] // A
index [1] // B
index [3] // C
index [4] // E