CS 200 Midterm: CS 200 CSU Midterm1 04
Document Summary
________________________________________________________________: [3 pts] give an example of casting in java. _________________________________________________________________: [3 pts] you are running program "java prog1". Circle the letter of each statement that is true in each of the statements that follow the beginning statement. Best case = _______ worst case = _____: [10 pts] in assignment 2, you used mergesort to sort the contacts file. So assignment 1 and 2 required two approaches to the same problem: creating a sorted arraylist by reading in strings from a file. The calling code will need to confirm whether a given contact (of type string) is an allowed email address. You get a choice of data structure for storing the contacts. Which data structure is better for the contacts? (circle one and justify your response based on efficiency and use considerations) ordered arraylist or ordered doubly linked list: [20 pts] the following is a modified version of bailey"s mergesort.