Scanners
You're probably wondering how you'd get input for your code. Like- let's say you wanted to make a chatbot that responds to you. How would we do this, while also only using our console?
Scanners are objects that look through a specific object. This is the syntax of a Scanner.
Scanner scannerName = new Scanner(input)
Notice how I didn't put a data type for input. This is because Scanners are designed to scan through different things
Last updated