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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!