Java array indices are of type int
(4 bytes or 32 bits), so I’m afraid you’re limited to 231 − 1 or 2147483647 slots in your array. I’d read the data into another data structure, like a 2D array.
More Related Contents:
- Converting array string to arraylist without nesting it in Java
- Creating a program to file criminal cases and then view them, with new case being allowed to add
- How do I declare and initialize an array in Java?
- How can I concatenate two arrays in Java?
- How to initialize an array in Java?
- Are arrays passed by value or passed by reference in Java? [duplicate]
- JSON Array iteration in Android/Java
- Where is array’s length property defined?
- Java Array Sort descending?
- Check string for palindrome
- Java: Reading a file into an array
- How to map a PostgreSQL array with Hibernate
- Finding the second highest number in array
- Java Comparator class to sort arrays
- Why does my sorting loop seem to append an element where it shouldn’t?
- Can an array be used as a HashMap key?
- varargs and the ‘…’ argument
- Converting an array of objects to an array of their primitive types
- Getting the array length of a 2D array in Java
- Splitting String and put it on int array
- Empty an array in Java / processing
- Split a String at every 3rd comma in Java
- How to get unique items from an array?
- Is it possible to dynamically build a multi-dimensional array in Java?
- Java OutOfMemoryError in reading a large text file
- Why does printing a Java array show a memory location [duplicate]
- add an element to int [] array in java [duplicate]
- Finding prime numbers with the Sieve of Eratosthenes (Originally: Is there a better way to prepare this array?)
- How to remove element from an array
- Compare two arrays of primitives in Java?