Given the program: importjava.util.Stack; public class SweetCandy { public static void main(String [ ] args) { Stack
Fantastic news! We've Found the answer you've been seeking!
Question:
Given the program:
importjava.util.Stack;
public class SweetCandy
{
public static void main(String [ ] args)
{
Stack container = new Stack( );
container.push (new Candy("Purple"));
container.push (new Candy("Green"));
container.push (new Candy("Yellow"));
container.push (new Candy("Purple"));
container.push (new Candy("Blue"));
Posted Date: