Question: Questionl (50 points): Write a Java program that efficiently displays all the integers that are divisible by seven in a specific range specified by the
Questionl (50 points): Write a Java program that efficiently displays all the integers that are divisible by seven in a specific range specified by the user. 2. In order to solve this problem, we will implement: A thread class called PrintMultSeven that receives two integer parameters: "begin" and "end". Then, the thread displays all the integers that are divisible by seven between begin and end . A Main Thread (Main class) that: a. Asks the user to enter three positive integers "x1", "x2", and "x3" b. Creates two PrintMultSeven threads that will run at the same time. The first thread displays all the integers that are divisible by seven between x1 and x2. The second thread displays all the integers that are divisible by seven between x2 and x3. C. After the threads finish their work, the Main Thread displays "Terminating Now..." Notes: 1. You should use the join method to synchronize the threads. (Do not use semaphore) 2. It is your responsibility to know when to use the join method to get correct results in the fastest way
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
