Good morning, excuse my ignorance by simple doubt. I'll get right to the point.
I have a list of alerts
List<Alertas> alertas;
This list contains several messages sent to some users, I have the following methods that I can use:
getUsers_receive;
getMsg;
TheideaisthatIcanonlydisplaythemessageiftheperson'suserisin"usrs_receive" so for this I need to scan the list I already have of "user_receive" and try to find the person's user.
All users are comma-separated, so I know I can use Split to do this.
My difficulty lies in: Separate the user_received with the split and after that locate if in some of these users I encounter a certain user.
Currently what I have is just that:
for (Alertas a : lista_alertas) {
String[] usrs = a.getUsers_receive().split(",");
}