Posts by lucas • 23 points
1 post
-
2
votes1
answer54
viewsQ: Delete function from list
I have this function to delete from the list chained by value: public void deletar(Object valor) { Node temp = head; while(temp != null) { if(temp.getNext().getValor().equals(valor)) {…