On java
The UAE University would like to organize an event. The college of IT would like to select some students to represents the college during the event. So they would like to prepare a list for these students, and the list has to have: Valid Student Name: no special characters or numbers. .Valid ID: length is 8, no special characters or letters. Valid Email: has 'G' character followed by ., character. Valid Phone: length is 10, no special characters or letters, starts with 050, 055, 056 or 052. GPA above 3.0 Credit hours finished more than 60 hours. Write a program that have the following classes. Each a string method that return a string indicating the type of exception 1. Class InvalidNameException that extends class Exception 2. Class InvalidDException that extends class Exception 3. Class InvalidEmail Exception that extends class Exception 4. Class InvalidPhone Exception that extends class Exception 5. Class GPABelow3Exception that extends class Exception 6. Class CrHrsBelow60Exception that extends class Exception Your program must have a class EventStudent. The class has the following attributes: name, id email, phone, gpa, and crHrs. Also the class has the following methods: 1. Default constructor 2. Getter methods for all attributes. 3. Setter methods for all attributes: attributes set the value passed only if it meets the criteria specified above. Otherwise, the attribute will have the default value and the c thrown. g exception will be Your main class must have 1. GenerateStudents Report method a. Pass array or array list of EventStudent as a parameter b. Reads the students' details from file. Use the Setter Methods. c. Writes the students' details to file. Use the getter Methods and Exception Handling. d. Save the details to the Event Student array or array list 2. Main method: a. b. Has Array or array list of EventStudent objects. Call GenerateStudentsReport method