Problem type: Array List / Java Data Structures Problem: For each of the following program segments, determine if the segment would generate a compile-time error(CT-E), a run-time exception(RT-E) or neither (NONE).
a. ArrayList myList = new ArrayList(); myList.add("Yes"); myList.add (new Integer(7));
b. ArrayList original = new ArrayList(); original.add("Yes"); ArrayList copy = original.clone();
c. ArrayList newList = new ArrayList(); newList,add("Yes"); Integer answer = (Integer) newList.get(0);
------------------------------------------------------ A posted complete solution would be awesome! and thank you in advance!