Question: java program please 2. Read the Register Number and Mobile Number of a student. If the Register Number does not contain exactly 9 characters or
2. Read the Register Number and Mobile Number of a student. If the Register Number does not contain exactly 9 characters or if the Mobile Number does not contain exactly 10 characters, display appropriate error message. If the Mobile Number contains any character other than a digit, display appropriate error message. If the Register Number contains any character other than digits and alphabets, display appropriate error message. If they are valid, print the message "valid' else 'invalid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
