I have a String[]
with values like so:
public static final String[] VALUES = new String[] {\"AB\",\"BC\",\"CD\",\"AE\"};
Given
Actually, if you use HashSet
It all depends on how your code is set up, obviously, but from where I stand, the order would be:
On an unsorted array:
On a sorted array:
So either way, HashSet for the win.