title: Methods , Smaller value
body: <p>i have a task to write a program that take two integers and print the smaller value integer using an method called Min i did it like the following code its working perfectly , but my question is i cant figure  out how to include a massage or condition when the inputs are equal
  from the user .</p>
  
  <p>Thank you</p>
  
  <pre><code>import java.util.Scanner; 
   public class Min
  
   { 
  
          public static void main(String[]args)
  
          {
              Scanner in = new Scanner(System.in); 
              System.out.print("Enter First Number: ");
              int fnumber = in.nextInt();
              System.out.print("Enter Second Number: ");
              int snumber = in.nextInt();
              int result = min(fnumber,snumber);
              System.out.println(result + " Has the smaller Value ");
          }
  
          public static int min (int n1, int n2)
  
          {
  
              if (n2 &lt; n1)
              {
                  return n2;
              }
  
              else
              {
                  return n1;
              }
  
  
          }  
  
  }
  </code></pre>