// Hunter Schafer, CSE 143 // This class is an example of a client that uses Stacks and Queues import java.util.Stack; import java.util.LinkedList; import java.util.Queue; public class StackQueueDemo { public static void main(String[] args) { Stack tasStack = new Stack(); tasStack.push("Kyle"); tasStack.push("Ian"); tasStack.push("Aaron"); System.out.println(tasStack); while (!tasStack.isEmpty()) { System.out.println(tasStack.pop()); } Queue tasQueue = new LinkedList(); tasQueue.add("Kyle"); tasQueue.add("Ian"); tasQueue.add("Aaron"); System.out.println(tasQueue); while (!tasQueue.isEmpty()) { System.out.println(tasQueue.peek()); } } }