Answers for "startwith check for multipl frases"

1

startwith check for multipl frases

if (newStr4.startsWith("Mon") || newStr4.startsWith("Tues") || ...)

Or you could use regular expression:

if (newStr4.matches("(Mon|Tues|Wed|Thurs|Fri).*"))
Posted by: Guest on November-16-2020

Browse Popular Code Answers by Language