1 import java.util.Arrays;
2
3 public class Demo {
4
5
6 public boolean isSameArr(String[] array1, String [] array2) {
7
8 Arrays.sort(array1);
9 Arrays.sort(array2);
10 return Arrays.equals(array1, array2)
11
12 }
13
14 }