阅读背景:

使用java中的long as ArrayList索引

来源:互联网 

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 array index, and it expects an int var in its place. But I'll be working with large numbers, so I can't use int. What can I do?I am writing this java program to find all the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: