Page 1 of 1

Please do in java Design,implement and test a Student class. A Student object has a name and phoneNumber, both stored as

Posted: Tue May 24, 2022 7:54 am
by answerhappygod
Please do in java
Design,implement and test a Student class. A Student object has
a name and phoneNumber, both stored as String types. These must be
declared private, they are instance variables.
A Student object can return the value of each of its
attributes(accessor) and change the value of each of its
attributes(mutator) it can also display itself in the form:
Sheelagh (Phone: 5550000)
you are required to write two separate methods named isNumeric()
and isBlankOrEmpty() these will handle string validation. Phone
number must be 7 or 10 digits in length, if phone number is 10
digits the first character must be 0