Scanners
You're probably (not) wondering how you'd get input for your code. After all, the user can't just stop the code and change a value every time. We can use Scanners!
Scanners are just objects that get a specific object to scan, and look through it. The syntax of a scanner is similar to a regular object's syntax:
Notice how I didn't put a data type for input. This is because Scanners are designed to scan through different things
Last updated