public class test {
public static void main(String[] args) {
double[] d=new double[500];
for (int i = 0; i <500 ; i++) {
d[i]= Integer.MAX_VALUE;
}
boolean[] disco=new boolean[500];
for (int i = 0; i <500 ; i++) {
disco[i]= false;
}
disco(5)=true;
}
}
I get an "method call expected" error when trying to change a value in the disco array. Could someone explain to me why that is?