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

 

abraskin@mbusd.org 2019_units1-4_practice > passLength
prev  |  next  |  chance

You are registering for a website and the minimum password length is 8 characters. Write a method that determines if the inputted password is of sufficient length, and if it is not, state how many more characters the password requires to be sufficient.


passLength("pass") → "Your password is not long enough. It must have 4 more character(s)."
passLength("password") → "Your password is sufficient."
passLength("trump") → "Your password is not long enough. It must have 3 more character(s)."

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

public String passLength(String pass) { }

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

Difficulty: 100

Copyright Nick Parlante 2017 - privacy