We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1db15 commit 5496578Copy full SHA for 5496578
src/test/java/edu/luc/cs/consoleapp/OutputToList.java
@@ -0,0 +1,17 @@
1
+package edu.luc.cs.consoleapp;
2
+
3
+import java.util.ArrayList;
4
+import java.util.LinkedList;
5
+import java.util.List;
6
+import java.util.Queue;
7
8
+class OutputToList implements OutputHandler {
9
10
+ final List<Queue<String>> result = new ArrayList<>();
11
12
+ @Override
13
+ public void accept(final Queue<String> value) {
14
+ final var snapshot = new LinkedList<>(value);
15
+ result.add(snapshot);
16
+ }
17
+}
0 commit comments