title: Test if a number is a multiple of another
body: <p>i have a question in my textbook that says:</p>
  
  <p><strong>Write a method multiple that takes two integers as its arguments and returns true if the first integer is divisible
  evenly by the second one (i.e., there is no remainder after division); otherwise, the method should
  return false. Incorporate this method into an application that enables the user to enter values to test the
  method.</strong></p>
  
  <p>and i wrote this code but its not working:</p>
  
  <pre><code>public class project1 {
  
      public static void main(String[] args) {
          Scanner input = new Scanner(System.in);
          int a, b;
          System.out.println("enter the first number");
          a = input.nextInt();
  
          System.out.println("enter the first number");
          b = input.nextInt();
      }
  
      public static boolean multiple(int g, int c) {
  
          int g, c;
  
          if (g % c = 0) {
              return true;
          } else {
              return false;
  
          };
      }
  }
  </code></pre>