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

 

validEmail


Create a method called public boolean validEmail(String email) that will take in a string email and: · If the length is 0 return false · If the length is greater than 50 return false · If there is no @ symbol in the email, return false · Otherwise return true


validEmail("") → false
validEmail("borlaj@portlandschools.org") → true
validEmail("sdfsdfsd") → false

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

public boolean validEmail(String email){ }

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