Arbitrary array length in java

arrays, biginteger, java

Solution

This library should be useful for you: http://fastutil.dsi.unimi.it/

It says:

"...provides also big (64-bit) arrays..."

Problem

Is there a way to get an array in java which is longer than the length supported by an integer data type? I'm looking for something that may be indexable using a big integer in Java because the natively supported array length is nowhere near as big as I need it to be for an algorithm I am implementing.

Original source