I have the following if statement:
String newStr4 = strr.split("2012")[0];
if (newStr4.startsWith("Mon")) {
str4.add(newStr4);
}
I want it to include startsWith
Mon
Tues
Weds
Thurs
Friday
etc. Is there a simple way to this when using strings? I tried ||
but it didn't work.
"Mon||Tues"
etc.? Or did you usenewStr4.startsWith("Mon")||newStr4.startsWith("Tues") ...
? Either way, please define "it didn't work".