I get nearly the same error, using this implementation as well.
C:\Users\username\Documents\Programming>javac BSTree.java
BSTree.java:42: cannot find symbol
symbol : method clone()...
Type: Posts; User: darkestfright
I get nearly the same error, using this implementation as well.
C:\Users\username\Documents\Programming>javac BSTree.java
BSTree.java:42: cannot find symbol
symbol : method clone()...
The compiler seems to accept <E extends Comparable, Cloneable>, but as soon as it reaches
data = element.clone()
I get:
C:\Users\username\Documents\Programming>javac BSTree.java...
I know that it is possible to force generic parameters to implement certain interfaces like the following:
public class Stuff <E extends Comparable>
{
//...
}