Answered You can hire a professional tutor to get the answer.
Write a Java program that creates and prints a random phone number of the form XXX-XXX-XXXX, such that the first XXX group does not contain any 8 or
Write a Java program that creates and prints a random phone number of the form XXX-XXX-XXXX, such that the first XXX group does not contain any 8 or 9, and the second XXX group is not greater than 742. Include the dashes in the output.