I'm sure there is a simple answer to this because I think I have used or heard of it previously but can't seem to find it, possibly because Google doesn't understand English. Basically I need something similar or the same as an array that does not allow duplicate values (in Java).
Example: int[] example = {1,2,2,3,4,4}
would be {1,2,3,4}
Hopefully this is clear enough for a human to understand even if Google couldn't.