SyntaxFix
Write A Post
Hire A Developer
Questions
Try to use anyMatch of Lambda Expression. It is much better approach.
anyMatch
boolean idExists = tabPane.getTabs().stream() .anyMatch(t -> t.getId().equals(idToCheck));