Java: i want to compare 2 arrays, i want to find out if the first n entries in the array s comes before the first n entries in array t in dictionary order, in other words if n = 4 then ('b''i''n''a''r''y') is less than ('b''i''n''d'). because the 4th element of binary 'a' comes before the 4th element of bind 'd'
i'm really struggling with this

```
@Override
public boolean lessThan(char[] s, char[] t, int n) {

    for (int i = 0; i < n; i ++){

        if (s[i] > t[i]){

            return true;

        }

    }

    return false;

}

```