You could try using a generic list to index all of your objects, and then just using a for-each loop to call and test them, however I don't know if that is desirable for you.
I am fairly certain it is because you have not derived the Comparable class from your SortedFixedCircularArray, and in turn causes you to be unable to cast an object of that type and then reference it to a Comparable
You could try this:
`class SortedFixedCircularArray<E> extends Comparable<E> {
//In Which This Should Now Work:
data = (SortedFixedCircularArray<E>[]) new Comparable[height];
}
`
The problem could also be that you are referencing a comparable as an array instead of an <>, which would also result in a cast exception.
I Hope This Helps :)