title: How do I check divisibility in Java?
body: <p>I am trying to check if on number is divisible by another, and currently I use this method:</p>
  
  <pre><code>int x = 70;
  int y = 30;
  
  if(x/y == Math.round(x/y)) {
      ...
  }
  </code></pre>
  
  <p>Is there a simpler way?</p>