title: The method asList(T[]) in the type Arrays is not applicable for the arguments (int, int)
body: <p>I am using jdk1.8.0_121 on eclipse kepler (My OS is windows 7), I have created a simple project contained one class with static main method. </p>
  
  <p>When I tried to create a list as follow </p>
  
  <p><code>List l = Arrays.asList(1,2);</code> </p>
  
  <p>I got this error : </p>
  
  <blockquote>
    <p>The method asList(T[]) in the type Arrays is not applicable for the
    arguments (int, int).</p>
  </blockquote>