| about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy