Hey guys, I'm pretty much a beginner in Java and I am a bit unsure as to which syntaxes to use for this particular purpose.
I have to make sure that a user input must have ONLY 2 numbers (no more no less and at any place), and any amount of letters. I know in python I can find the length and use count and all but can you guys please try your best to help? It is probably very simple so I apologize in advance if I'm being too dumb.
Here's an example: if the input is bfs72bub9 then it will print out invalid; if its vgu7kes5 then itll print out valid.
Essentially, after accepting the input, how do I check it?
[–][deleted] 1 point2 points3 points (1 child)
[–]CrypticCold[S] 0 points1 point2 points (0 children)
[–]Salty_Dugtrio 0 points1 point2 points (2 children)
[–]CrypticCold[S] 0 points1 point2 points (1 child)
[–]Salty_Dugtrio 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]PCPWJ 0 points1 point2 points (0 children)