I\'m writing one of my first programs dealing with generics and standard OOP principles in Java, however I am running into a bit of a problem when dealing with the Integer type.
According to the error message BinarySearchTree has a type parameter called Integer which shadows the standard type java.lang.Integer.
BinarySearchTree
Integer
java.lang.Integer
Just remove the type parameter in both classes, i.e.
class IntgS { ... }