logo CodeStepByStep logo

isMultiple

Language/Type: Java parameters boolean return
Author: Mariana Stepp (on 2016/06/16)

Write a method named isMultiple that accepts two non-negative integer parameters a and b, and returns true if a is a multiple of b, and false otherwise. For example, the call of isMultiple(15, 5) would return true because 15 = 5 * 3. You may assume that a and b are non-negative integers and that b is not 0.

Method: Write a Java method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.