I am supposed to be implementing mergesort without recursion. I've finished all that jazz, but the class is not compiling for reasons outside the domain of the homework assignment. Here is the problem:
This aspect is taken directly form the textbook...
public <T extends Comparable<? super T>> void Mergesort(T[] a){
T[] tmpArray =(T[]) new Comparable[a.length];
1 warning found:
File: /Users/OcastaEshu/Java/NonRecursiveMergesort.java [line: 22]
Warning: /Users/OcastaEshu/Java/NonRecursiveMergesort.java:22: warning: [unchecked] unchecked cast
found : java.lang.Comparable[] required: T[]