HashSet boog = new HashSet(); boog.add(new String[]{\"a\", \"b\", \"c\"}); boog.add(new String[]{\"a\", \"b\", \"c\"}); boog.add(new
You can't. arrays use the default identity-based Object.hashCode() implementation and there's no way you can override that. Don't use Arrays as keys in a HashMap / HashSet!
Use a Set of Lists instead.