Hi,
I'm trying to convert the following C code to Java but I get an error message "[" should be expected. Does anyone know why I am getting this and what I should change.
ps. Is there a program out there that does this Convert C to Java?
//loop for going through the 2d array
int counter1 = 0;
for (int i = 0; i < 7;i++ )
{
double[] D = new double[3];
int counter = 0;
//inner loop
for (int j = 0; j < 3; j++)
{
D[counter] = smallest(A[counter], bell[j, i]);
counter++;
}
g[counter1] = largest(D);
counter1++;
}
I'm trying to convert the following C code to Java but I get an error message "[" should be expected. Does anyone know why I am getting this and what I should change.
ps. Is there a program out there that does this Convert C to Java?
//loop for going through the 2d array
int counter1 = 0;
for (int i = 0; i < 7;i++ )
{
double[] D = new double[3];
int counter = 0;
//inner loop
for (int j = 0; j < 3; j++)
{
D[counter] = smallest(A[counter], bell[j, i]);
counter++;
}
g[counter1] = largest(D);
counter1++;
}