I have this code:
private class Tree<T implements Comparable<T>> {
}
I expect to put String objects into this tree, and String implements Comparable, so this looked good at first glance.
But I'm getting the error:
> expected
private class Tree<T implements Comparable<?>> {
^
Suggestions?
You need to use