I have a problem that is as follows:
When reading data from a particular Firebase node, I get an indefinite number of Strings. The name of each String
, is ID
of User. When returning this data, save it in ArrayList
, to compare if Uid X
is in the list, like this: arrayList.contains("Uid X")
.
However, the return I get is a true
or a false
for each of Strings
.
How do I return only a true, or a false after checking the entire list?