text is a standard library package for processing text, numbers, and dates. It it not where input/output related code lives. To use a class in Java you must import it into your code. You reference the complete class name including the package. As a shortcut you can import everything in a package with * .16 Eki 2019