0

what is the problem with my code?

I just take the challemge from community "Password validation " on coach code and it keep saying my code is wrong. why? https://code.sololearn.com/cC3jx026ej2b/?ref=app

22nd Nov 2020, 1:29 PM
Cleverguns YT
Cleverguns YT - avatar
1 Respuesta
0
You have taken the input using 'nextLine' which allows spaces and tabs in the input password which gets validated as a 'strong' password if the length is between 7 and 30, and if there's a number and special character. I don't think blank spaces are allowed in a password. Try using 'next' instead of 'nextLine'. Hope you find this useful.
22nd Nov 2020, 4:16 PM
Manish Yadav
Manish Yadav - avatar