Objects of type Scanner are useful for breaking down formatted input into tokens and translating individual tokens according to their data type.
docs.oracle.com