Question: Write a Java program that uses regular expressions to count the number of email addresses (Read and Write in a text file) that belong

Write a Java program that uses regular expressions to count the number of email addresses (Read and Write in a text file) that belong to each of the KSU, imamu, and KAU domains. (You have to enter some email addresses in a text file, including your university email address, and then display the number of emails in each domain) For example: sami@KSU.edu.sa Khaled@imamu.edu.sa Fahed@KAU.edu.sa Abdulaziz@KSU.edu.sa KSU domain = 2 emails imamu domain = 1 email KAU domain = 1 email
Step by Step Solution
There are 3 Steps involved in it
Answer Heres a Java program that reads email addresses from a text file uses regular expressions to ... View full answer
Get step-by-step solutions from verified subject matter experts
