title: I want to implement two methods to check if a number is a palindrome
body: <p>As above, I have two methods, </p>
  
  <pre><code>public static int reverse(int number)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>public static boolean isPalindrome(int number)
  </code></pre>
  
  <p>I should arrange them to check whether a number is palindrome or not. I tried to apply the hint (a number is palindrome if (its reversal == itself)) but it did not help.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Test {
      public static void main(String[] args) {
  
          System.out.println("This program checks whether a number is palindrome or not. Enter a number: ");
          Scanner input = new Scanner(System.in);
          int inputNumber = input.nextInt();
  
          // if inputNumber is palindrome 
  
          System.out.println("The number is palindrome.");
  
          // else 
  
          System.out.println("The number is not a palindrome.");
      }
  
  
          public static int reverse(int number)
  
          // reverse number
  
  
          public static boolean isPalindrome(int number)
  
          // check if the number is palindrome     
      }
  }
  </code></pre>