All pastes #990809 Raw Edit

Anonymous

public text v1 · immutable
#990809 ·published 2008-04-20 13:21 UTC
rendered paste body
private 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;
	        }
	    }
	}