J
JurnChing
I want to make an array with a 'long' length, but seem like the
primitive array can only take length 'int'. For example:
public long a[];
public long func(long x) {
return a[x];
}
SomeClass.java:44: possible loss of precision
found : long
required: int
return a[x];
^
I am wondering if there is anyway to go around it without using the
Java Array class.
Thanks in advance
primitive array can only take length 'int'. For example:
public long a[];
public long func(long x) {
return a[x];
}
SomeClass.java:44: possible loss of precision
found : long
required: int
return a[x];
^
I am wondering if there is anyway to go around it without using the
Java Array class.
Thanks in advance