I have 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());
It returns this:
[2, 11, 12, 13, 14, 14]
But I want it to look like this:
[2, 11, 12, 13, 14]
I want to either delete the repeated ones or group the values.