Question: Write a method that takes two integers as parameters and returns trueif the first integer is evenly divisible by the second integer, false otherwise. For
Write a method that takes two integers as parameters and returns trueif the first integer is evenly divisible by the second integer, false otherwise. For example, if the integers are the pair (55, 5) the method should return true, while if the integers are the pair (55,6) the method should return false. In addition, write a main method that tests your method for a variety of conditions where it should return true and a variety of conditions where it should return false.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
