Question: Write method Multiple that determines, for a pair of integers, whether the second integer is a multiple of the first. The method should take two

Write method Multiple that determines, for a pair of integers, whether the second integer is a multiple of the first. The method should take two integer arguments and return true if the second is a multiple of the first and false otherwise.

Incorporate this method into an application that inputs one pair at a time and determine whether the second value is a multiple of the first.

Input: Enter first number < to exit >: 6

Enter second number: 12

Output:

12 is a multiple of 6.

Input: Enter first number < to exit >: 6

Enter second number: 3

Output:

3 is not a multiple of 6?
(JAVA PLEASE)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!