"Because the argument you pass - an int is a primitive, and primitives are not objects - you can not invoke methods on them." . . . .