Unlike the String class where you must pass a message to an object (instance) of the class, as in x. length (), in order to use either the Scanner or Math classes, you pass messages directly to the class name, as in Math. abs () or scan. nextInt ().
Answers (1)