SyntaxFix
Write A Post
Hire A Developer
Questions
No one mentioned Stream so far, so here it is:
Stream
if (Stream.of("Mon", "Tues", "Wed", "Thurs", "Fri").anyMatch(s -> newStr4.startsWith(s)))