id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

zbaharav@kehillah.org 66-sortingprep > isPasswordValid
prev  |  next  |  chance

A valid password should have at least 6 characters. It also must have at least one uppercase letter, one lowercase letter, one digit, and one special character that is not a letter or digit. Given a string contains a password, return true if the password is valid, return false otherwise.


isPasswordValid("aA&6") → false
isPasswordValid("AB1234ab*") → true
isPasswordValid("A1a****") → true

...Save, Compile, Run (ctrl-enter)

public boolean isPasswordValid(String s) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy