📜  startwith 检查多重帧 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:06.758000             🧑  作者: Mango

代码示例1
if (newStr4.startsWith("Mon") || newStr4.startsWith("Tues") || ...)

Or you could use regular expression:

if (newStr4.matches("(Mon|Tues|Wed|Thurs|Fri).*"))