Write a method called evenlyDivisible that accepts two integer parameters and returns true if the first parameter is evenly divisible by the second, or vice versa, and false otherwise. Return false if either parameter is zero.

What will be an ideal response?


```
public boolean evenlyDivisible(int num1, int num2)
{
boolean result = false;

if (num1 != 0 && num2 != 0)
if (num1 % num2 == 0 || num2 % num1 == 0)
result = true;

return result;
}

```

Computer Science & Information Technology

You might also like to view...

A(n) ________ key that is created from naturally occurring data generated outside of a database such as a driver's license number

Fill in the blank(s) with correct word

Computer Science & Information Technology

To view your recent searches, you can click the magnifying glass button on the left side of the Search field.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What are the basic differences between static RAM and dynamic RAM?

What will be an ideal response?

Computer Science & Information Technology

Calculations are preformed from right to left, working toward the equal sign.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology