0

Hey Everyone,

I just have a quick question... does anyone know how to test 2 integers (int a, int b) to see if int a is evenly divisible by int b? I tried it like this but it doesn't really seem to work:

```
public boolean isDivisible(int a, int b)
{
double d = a / b;
if (d == Math.round(d))
return true;
else
return false;
}
```

Anyone have any ideas? Thanks in advance.

-Nick Nisi