In the future, please post the full error and code. Presuming 'Integer' refers to the Integer class and not a poorly named variable, where in the API of Integer is that method defined?