The lab is done in pairs. Please do not use the mergesort and quicksort code in the book for this lab.
Use the in-class example Typecasting.java. Please answer the following questions. Send your program with the code that you wrote to test these cases and with conclusions. Comment out code that doesn't compile. Catch exceptions for code that's throwing exceptions.
Stack<Integer>
to ArrayList<Integer>
variable, with and without
typecasting?
Stack<Integer>
to
a Stack<Object>
?
The other way around? With and without typecasting?
Finish implementing Mergesort started here. You may use the general description of mergesort on pp. 527-533, but not the code that follows. Test it thoroughly.
Submit the java file(s) with your testing code by e-mail to me. The subject of the message must be 2101 Lab 8. Make sure to CC your group partner.