Question: Your goal is to validate a String using the chapter 9 methods. You will review creating a class and a tester class. Implement a class

Your goal is to validate a String using the chapter 9 methods. You will review creating a class and a tester class.
Implement a class named: EmailAccount (35 points)
With three String Fields: 3 Strings: firstName, lastName, emailAddress.
1 Boolean validEmail field (true if the email address is valid and false if invalid).
Initialize to true.
With two constructions:
One empty constructor and
One that creates an EmailAccount object with a first name, last name and email address (must call
the set methods)
The following methods need to be implemented:
get and set methods for firstName,
get and set methods for lastName,
get method for emailAddress
set method for emailAddress
Validate that the email address is between 15-25 characters long.
Validate that the email address has an @ symbol.
Validate that the email address has a number.
Also assigns a value to the validEmail field(true if valid, false if invalid)
override the toString method
returns the first name, last name, email address, and if the email is vaild or invalid.
override the equals method
returns true if two email addresses are the same. It is not case sensitive.Which of the following is NOT true about static methods?
Group of answer choices
It is not necessary for an instance of the class to be created to execute the method.
They are often used to create utility classes that perform operations on data, but have no need to collect and store data.
They are created by placing the key word static after the access specifier in the method header.
They are called from an instance of the class.
Your goal is to validate a String using the

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 Accounting Questions!