title: Passing int to a method taking Integer as parameter?
body: <p>Is it Ok to pass int to a method which is taking Integer as parameter.
  Here is the code</p>
  
  <pre><code>public class PassingInt 
  {
      public static void main(String args[])
      {
          int a = -1;
          passIntToInteger(a);//Is this Ok?
      }
  
      private static void passIntToInteger(Integer a) 
      {
          System.out.println(a);
      }
  
  }
  </code></pre>