S
stevek
CODE SEGMENT:
for(int i = 0; i < cycles ; ++i) {
int counterarray[] = new int[cycles];
counterarray[] = counterarray[Math.round(Math.random()*i)];
// if(i==0) continue;
ERROR MSG:
E:\javastuff\dev\javac RandomCheck.java
RandomCheck.java:21: possible loss of precision
found : long
required: int
counterarray[ Math.round(Math.random()*i) ]++;
1 error
for(int i = 0; i < cycles ; ++i) {
int counterarray[] = new int[cycles];
counterarray[] = counterarray[Math.round(Math.random()*i)];
// if(i==0) continue;
ERROR MSG:
E:\javastuff\dev\javac RandomCheck.java
RandomCheck.java:21: possible loss of precision
found : long
required: int
counterarray[ Math.round(Math.random()*i) ]++;
1 error