Question: Can someone help me fix this method? It will not change the value of Object name. public Object obj(String title) { //TODO - COMPLETE THIS

Can someone help me fix this method? It will not change the value of Object name.

public Object obj(String title) { //TODO - COMPLETE THIS METHOD Object name; Iterator iter = Linkelist.iterator();

if (isLogEmpty() == true) { name = null; } else { for (int i = 0; iter.hasNext(); ++i) {

if (linkeList.toString().equals(title)) { iter.remove(); name = linkedList.get(i); }

} }

return name; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!