Ernie Mcracken wrote:So you need to read your string using your Scanner then call the validateString() method
If you are going to have this in the same class as your Main then you'll need to make the validateString() method static.
Ernie Mcracken wrote:for your validateInput method you could method something like this,
Your current method will return every time you hit a 0 or 1 so it will only return false if the first character is not 1 or 0.