I have a Cage class:
public class Cage<T extends Animal> {
// the construtor takes in an integer as an explicit parameter
...
}
I am trying to instantiate an object of Cage in another class main method:
private Cage cage5 = new Cage(5);
I get the error: Cage is a raw type. References to generic type Cage should be parameterized. I tried several ideas, but am stuck about this tricky syntax :o(