/ private static final
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
long arraySize=10_000_000L;
// TODO code application logic here
Long[] largeArray = new Long[10000000];// compiles OK
Long[] myIntArray = new Long[arraySize];// compile error
}
Can some one help me understand why I am getting this compiler error. "error: incompatible types: possible lossy conversion from long to int"