Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

2. 21.4b What is the international Fisher effect?

Answered: 1 week ago

Question

=+How should it be delivered?

Answered: 1 week ago