3
I have a list
List<Comentarios> comentarios
List<Comentarios> comentariosSP
The first list I receive data from a webserver, the second from a Sharedpreferences.
I tried to compare them
comentarios.equals(comentariosSP)
but it always returns false, even though I know the lists are identical.
remembering that I need to check if the attributes data are the same. EX:
comentarios.get(0).getComentario().equals(comentariosSP.get(0).getComentario())
You can do it without going through the whole list?
Thank you very much! served as a glove for me!
– Rafael Silva