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

 

validUsername


Create a method validUsername that will take in a username (a String) and check whether it is valid. If the length is 0, return false. If the length is less than 5, return false. If the username contains a space, return false. Otherwise, return true


validUsername("JeffB") → true
validUsername("") → false
validUsername("abc") → false

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

public boolean validUsername(String username) }

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