結果 : how to use predicate in java