โ Back to If Statements
Question 329
Password Length Check (Input)
Password Length Check (Input)
Read a single wordpasswordfrom standard input usingScanner'snext()method. If the password's length is>= 8, printStrong; otherwise printWeak. For the inputabcdefghthe output is: Strong
Expected Output:
Strong
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.