update,
This commit is contained in:
18
it114105/itp4510/Assignment/22-23/AdminPrintOrderList.java
Normal file
18
it114105/itp4510/Assignment/22-23/AdminPrintOrderList.java
Normal file
@@ -0,0 +1,18 @@
|
||||
public class AdminPrintOrderList implements AdminFunction{
|
||||
|
||||
private LinkedList orders;
|
||||
|
||||
public AdminPrintOrderList(LinkedList orders){
|
||||
this.orders = orders;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
// TODO Auto-generated method stub
|
||||
System.out.println("--------------------------------------");
|
||||
System.out.println(orders);
|
||||
System.out.println("--------------------------------------");
|
||||
System.out.println("Total outstanding order:" + orders.count());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user