Using a long as ArrayList index in java

后端 未结 7 1510
遇见更好的自我
遇见更好的自我 2020-12-10 14:01

I am writing this java program to find all the prime numbers up to num using the Sieve of Eratosthenes, but when I try to compile, it says I can\'t use a long var as an arra

7条回答
  •  天涯浪人
    2020-12-10 15:03

    There have been proposals to add long-indexed arrays to Java via Project Coin ( http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000869.html ) although nothing has been accepted or scheduled.

提交回复
热议问题