logoalt Hacker News

Zardoz84today at 7:07 AM0 repliesview on HN

> Day 1: Comparing/ checking equality against multiple Strings.

Just use Apache Commons Lang Strings.CS.equalsAny . If not, List.of or Set.of (if N could be big) should be the best options. Streams are better when you chain many operations.