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
Please do in java Design,implement and test a Student class. A Student object has a name and phoneNumber, both stored as
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am