/**
* A class used to illustrate how the call stack works.
*/
public class CallStackExample {
public static void main(String[] args) {
int x = 7, y = 8;
String dairy = "milk", soda = "cola";
SimpleMug mug1 = new SimpleMug(y, dairy);
SimpleMug mug2 = new SimpleMug(x, soda);
mug1.fill(x);
y = mug2.getMaxCapacity();
}
}