I'm trying to find the lowest value of an array of object from another class and storing that object int into an int type.

I am unsure to how to compare the array values and storing the lowest value into an int.

```
void findlow(Student [] a) {
/* This method will find the lowest score and store it in an   array names 
lowscores. */
    for (int i = 0; i < (a.length - 1); i++) {
        for (int j = 1; i < a.length; i++) {
            if (a[i].equals(a[j])) {
                 lowscores[i] = a[i];
            }
        }
    }
}

```