Scanner is an object, not a number. How can it be greater than 0?