Hi,
Can anyone tell me what is wrong with this code? It seems to be throwing me some error: non-static method getName() cannot be referenced from a static context.
public void printOrders()
{
for(Order filename: Orders) {
System.out.println("Name: " + Order.getName());
System.out.println("Quantity: " + Order.getQuantity());
}
}