I would like to know how I can separate values that show duplicity, an example:
I have a% Variable with% set to FormaPagto
,
In this variable I have 6 data:
0 - Money 1 - Debt 2 - Debt 3 - Money 4 - Money 5 - Check
What I want to do, separate the distinct values, in case I get only the values without them repeating, would look like this:
0 - Money 1 - Debt 2 - Check
Grouping the values leaving them unique, and if possible leave them in a ArrayList
.
Is there any function of ArrayList
itself that does such magic? Or what do they suggest?