Write Method Java Named Isvalidemail Takes String Input Parameter Returns True String Repr Q37109220

Write a method in java named isValidEmail that takes a string asinput parameter, and returns true if that string represents a validemail address, or false otherwise. An email address is consideredvalid if it follows this format “user123@domain.ext”, where:

 user123 represents a sequence of word characters (i.e.,letters, digits, or underscore) whose length is between 1 and 10(inclusive), but the first character must be a letter

 domain represents a sequence of alphanumeric characters (i.e.,letters or digits) whose length is between 1 and 12 (inclusive),but the first character must be a letter

 Exactly one character “@” separates the user name from thedomain name

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.