I have a list
List<Comentarios> comentarios
List<Comentarios> comentariosSP
The first list I get the data from a webserver, the second one from a SharedPreferences.
I tried to compare them
comentarios.equals(comentariosSP)
but it always returns false, even though I know the lists are identical.
reminding me that I need to verify that the attribute data is the same. EX:
comentarios.get(0).getComentario().equals(comentariosSP.get(0).getComentario())
Can you do this without going through the entire list?