public class Eater
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
Eater(java.lang.String name,
java.util.List<Food> order)
You can feel free modify this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
This method defines what an Eater does: The eater attempts to
enter the restaurant (only successful if the restaurant has a
free table), place its order, and then leave the restaurant
when the order is complete.
|
java.lang.String |
toString() |
public Eater(java.lang.String name,
java.util.List<Food> order)
public java.lang.String toString()
toString in class java.lang.Objectpublic void run()
run in interface java.lang.Runnable