Anonymous
public text v1 · immutableprivate static void searchl3(ListNode l, char ch){
boolean found = false;
while ((l.next != null) && found == false) {
ListNode temp = l.next;
if ( temp.element != ch )
l.next = temp.next;
else{
System.out.println("Found it!");
found = true;
}
}
}