Hi,
Why does this piece of code throw me an error saying: cannot return a value from method whose result type is void?
public void orderTotal()
{
int total;
for (Order filename: Orders) {
total = filename.getQuantity();
}
return total;
}