i think it may work for you, sort first array with
Arrays.sort(Object[]);
and after that you can compare with
Arrays.equals(Object[],Object[]);
complete code is:
String[] a1 = {"a", "b", "c"};
String[] a2 = {"c", "b", "a"};
Arrays.sort(a2);
boolean result= Arrays.equals(a1, a2);