public interface HappinessDetector
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHappy(int num,
int a,
int b)
Returns true if the given value is happy and false otherwise.
|
boolean isHappy(int num,
int a,
int b)
num - the number for which happiness will be determineda - under the general rule, num will only be happy if divisible by this numberb - under the general rule, num will not be happy if divisible by this number, even if divisible by a