java language A system needs to have a Validation class that can validate the input for instance variables of the different classes given in Table 1. It should validate the values for the data members from different classes using Regular Expressions, such that a name can only contain alphabets from A to Z or a to z and the first letter is always a capital letter. The address should start with a number followed by one or two words (for example 16 Khyber or 16 Khyber Ave). The phone number should have a format like 0-000-0000000 where the first digit is always a 0. The e-mail address should contain exactly one ‘@’ character and at least one ‘.’ character. A car’s registration number can only contain a maximum of 3 English alphabets followed by not more than 4 digits. All the classes should be able to validate their data without creating the objects
java language
A system needs to have a Validation class that can validate the input for instance variables of
the different classes given in Table 1. It should validate the values for the data members from different classes
using Regular Expressions, such that a name can only contain alphabets from A to Z or a to z and the first
letter is always a capital letter. The address should start with a number followed by one or two words (for
example 16 Khyber or 16 Khyber Ave). The phone number should have a format like 0-000-0000000 where the first digit is always a 0. The e-mail address should contain exactly one ‘@’ character and at least one ‘.’
character. A car’s registration number can only contain a maximum of 3 English alphabets followed by not
more than 4 digits. All the classes should be able to validate their data without creating the objects


Step by step
Solved in 2 steps with 2 images









