Here is a code to check if particular string is matched or not from List
if (Stream.of(getPlayingSongList()).filter(o -> o.getId().equals(songList.get(position).getId())).findFirst().isPresent()) {
ToastMethod.show(getActivity(), "Song is already in queue", true);
}
I want to know, which index from getPlayingSongList() is matching.
I am using com.annimon:stream library in android.