Write a method that takes two integers as parameters and


Program: 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 case, if the integers are the pair (55, 5) the method should returntrue, while if the integers are the pair (55,6) the method should return false.

In addition, prepare 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. Include comments in code section. Code this program in java programming.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a method that takes two integers as parameters and
Reference No:- TGS0958376

Expected delivery within 24 Hours