title: How to declare array to type long in java?
body: <p>I am trying to execute this code:</p>
  
  <pre><code>long n = in.nextLong();
      long k = in.nextLong();
      long[][] arr = new long[n][2];
  </code></pre>
  
  <p>But the is Compiler showing this error-</p>
  
  <pre><code>Main.java:9: error: incompatible types: possible lossy conversion from long to int
  
  
  long[][] arr = new long[n][2];
  </code></pre>
  
  <p>Can someone explain why this is happening?</p>