Last active
August 21, 2023 17:48
-
-
Save mcsee/1b98448f97cd23b6b5f8438280b73736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class Order { | |
public Order(LinkedList<int> items) { | |
items = items; | |
} | |
} | |
class OrderProcessor { | |
public static void main( String args[] ) { | |
LinkedList<int> elements = new LinkedList<int>(); | |
elements.add(1); | |
elements.add(2); | |
Order sampleOrder = new Order(elements); | |
Collection<Order> pendingOrders = new LinkedList<Order>(); | |
Collection<Order> confirmedOrders = new LinkedList<Order>(); | |
pendingOrders.add(sampleOrder); | |
pendingOrders.remove(sampleOrder); | |
confirmedOrders.add(sampleOrder); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment