2
I got the following ArrayList<Integer>
:
ArrayList<Integer> sequencia = new ArrayList<>();
sequencia.add(2);
sequencia.add(11);
sequencia.add(12);
sequencia.add(13);
sequencia.add(14);
sequencia.add(14);
System.out.println(sequencia.toString());
He returns this:
[2, 11, 12, 13, 14, 14]
But I want it to stay that way:
[2, 11, 12, 13, 14]
Because I want to either eliminate the repeaters or group the values.
It worked! Thank you very much!
– Andrei Coelho