I have the following method in a class:
public void Process(Measurable x)
{
String y = x.getResult();
for (int k = 0; k<item.length; k++)
{
if (y.equals(item[k])) tally[k]++;
}
}
My question is, how do I call the Process method? Calling it with
Process(Measurable y);
in the default constructor or the driver class doesn't work, nor does calling it with no parameter (as I would expect).