Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Node temp;
for (temp = head; temp.next != null; temp = temp.next) {
if (temp.val == e1) {
break;
}
}
if (temp.val != e1) {
System.out.println(" not found");
}
else{
System.out.println(" value found"+" "+temp.val);
}
return temp;