Which is simplest code snippet you will add in the main function to set the name attribute of 50th in the ItemList to “Done”?
im.name = "Done";
Item otherObject = new Item(“Done”); itemList.set(49, otherObject);
((Item)itemList.get(49)).name = “Done”;
None of above is correct as they are not changing 50th element.