How can it be determined if one integer is divisble by another?
<p>So for this problem the question asks </p>

<blockquote>
  <p>a number x is divisible by y if the remainder after the division is zero. Write a program that tests whether one number is divisible by another number. read both numbers from the keyboard. </p>
</blockquote>

<p>This is what I have so far</p>

<pre><code>import java.util.Scanner;

public class ch3ProblemOne 
{

 public static void main(String[] args)
 {

     int x;
     int y;
     Scanner keyboard = new Scanner(System.in);
     x = keyboard.nextInt();
     y = keyboard.nextInt();

     if (x == 5);
     else if (y &lt;= 0);
     System.out.println(x + "is not divisible by" + y);

     else if (x == y);

     System.out.println(x + "is divisible by" + y);
</code></pre>
