Originally Posted by Norm
|
What does "from 1" mean if there is only one file to read from?
Do you mean to get the first number into one variable and the next number into the second variable and the next number into the first variable and the next number into the second variable, etc ?
What is the program supposed to do? What is written into the output file?
|
I mean the for loop like this,
|
Code:
|
for(int i = 1; i < maxSize; i++)
{
String data1 = getNextValue(process1, i);
double sampleData1 = parseValue(data1);
}
for(int i = 2; i < maxSize; i++)
{
String data2 = getNextValue(process2, i);
double sampleData2 = parseValue(data2);
} |
Then, I have problem to get this total from both of the for loop above.
|
Code:
|
double total = (sampleData1 + sampleData2); |