incorrect
How to fix this, it says java.lang.UnsupportedOperationException; null(in java.util.AbstractList) on i.remove(); https://code.sololearn.com/cMfULUxMMU8f case 5: //Delete by Name System.out.print("Enter NAME to DELETE: "); name=console.next(); found = false; c= Arrays.asList(p); ListIterator<Person>i = c.listIterator(); while(i.hasNext()){ Person e = i.next(); if (e.getName().equals(name)) { System.out.println("Record Deleted Successfully: "); i.remove(); found = true; } } if (!found){ System.out.println("Record Not Found: "); }