https://kodejava.org/how-do-i-validate-input-when-using-scanner/
How do I validate input when using Scanner?