@@ -5,6 +5,21 @@ Input is provided in this format:
...
@@ -5,6 +5,21 @@ Input is provided in this format:
type,from,stock,qnt,price
type,from,stock,qnt,price
```
```
Compile Main.java file using this command. It will compile all dependent classes:
```
javac Main.java
```
Execute the program using this command:
```
java Main
```
Sample input can be provided with the input file like this:
```
java Main < input
```
# Design
# Design
There are 6 classes defined in this code.
There are 6 classes defined in this code.
...
@@ -33,3 +48,15 @@ Pending orders are stored in these linked lists in chronological order. It finds
...
@@ -33,3 +48,15 @@ Pending orders are stored in these linked lists in chronological order. It finds
# JUnit Tests
# JUnit Tests
JUnit tests for a class is provided in file with same class name appended with "Test". For example, tests for OrderMatching class is in OrderMatchingTest class.
JUnit tests for a class is provided in file with same class name appended with "Test". For example, tests for OrderMatching class is in OrderMatchingTest class.