Here is what I tried to do, in a nutshell:
class example <T extends Number> { private int function(T number) { int x = (int) number; ... } ... }
Basically, I'm trying to make T be a number, so I can convert it to int inside this function. The problem is that I get the error "incovertible types", so I have to do something wrong.
ruh roh
source share