Question
In Java please. Youve just been hired onto the IT staff at the Best University Ever (BUE). Youre working on a website that collects student
In Java please.
Youve just been hired onto the IT staff at the Best University Ever (BUE). Youre working on a website that collects student information, and you want to make sure that the email addresses they provide are valid university emails.
BUEs emails are case-insensitive and in this format:
[first initial].[last name][1 or more digits (optional)]@ [1 or more subdomains, each followed by a dot (optional)]bue.edu
The first initial, last name, and subdomains (if present) cannot be blank, and they can contain only letters.
Within a source file named EmailValidator.java, write the static method boolean isValidEmail(String s)
This method returns whether s is a valid email address.
Here are some examples of valid email addresses:
t.stark@bue.edu
T.stArK69@cs.bue.edu
O.Prime@rigel.CS.bue.edu
a.dumbledore@wizard.bue.edu
Here are some examples of invalid email addresses:
lokilover@bue.edu -- Missing first initial
j.j.abrams@bue.edu -- Too many first initials
jon.sand@bue.edu -- First initial is too many characters
j.sand@Cityname.edu -- Wrong university
j.sand@bue.com No .edu domain BUE is totally not commercial, or so they claim
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started