TAILIEUCHUNG - A Guide To Advanced Java - Re gular Expressions

The management of the Orion Corporation is looking at storing the details of their employees in a standardized format in their database. This will facilitate the process of contacting employees in case of an emergency. The CEO of the company and a team of experts have chosen your company to provide a solution for the same. Consider yourself to be a part of the team that implements the solution for designing the application. Create an application using regular expressions to implement the solution. . | A Guide To Advanced Java Assignments Regular Expressions . No Assignment Question 1. The management of the Orion Corporation is looking at storing the details of their employees in a standardized format in their database. This will facilitate the process of contacting employees in case of an emergency. The CEO of the company and a team of experts have chosen your company to provide a solution for the same. Consider yourself to be a part of the team that implements the solution for designing the application. Create an application using regular expressions to implement the solution. The application should consist of the following classes. 1. 2. Each class has a specific purpose and functionality. The descriptions of each class are as follows. The Employee class represents an actual employee record. It stores the following details of an employee. name address phoneNumber These are the instance variables of the class. The Employee class also implements the following methods to standardize the address and phone number. String standardizeAddress This method is invoked to standardize the address of an employee. The method uses regular expressions to search for and replace the words Street Road and Drive with their abbreviations. These words may occur in the middle of the address or at the end of the address line. Use appropriate regular expressions to check for all possible conditions for searching and replacing text. This method will save valuable space for the system. String standardizePhone This method is invoked to standardize the phone numbers of the employees. A typical phone number is thought to be consisting of an area code a phone number and an extension number if any separated by some kind of delimiters. This method searches and replaces the delimiters with hyphens. The Administrator class is the main class used to test the Employee class. It creates an instance of the Employee class and invokes .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.