IC211 Spring 2019
Name (Last, First): ____________________________________________________ Alpha: _____________________
Describe help received: _________________________________________________________________
| HW0.java | Queue.java |
|
|
time java HW0and then run it several times like this:
time java HW0 xCompare the "real" times (which is actual seconds passed) for running with and without the commandline argument x (ignoring the crashes that may occasionally occur. Explain why it runs faster without the command-line argument.
[10pts] Modify the Queue class (not HW0.java) so that HW0 doesn't crash when run with the command-line argument X. Turn in a codeprint of your modified (and properly commented) Queue.java.
[40pts] Modify the main() below to use Iterators to print out the elements of the TreeSet. You'll want to look at Java API documentation for TreeSet. Turn in a codeprint of your modified (and properly commented) HW1.java along with screenshot of the program running in terminal window.
| HW1.java |
|