I have the following if statement:
String newStr4 = strr.split(\"2012\")[0]; if (newStr4.startsWith(\"Mon\")) { str4.add(newStr4); }
I
Do you mean this:
if (newStr4.startsWith("Mon") || newStr4.startsWith("Tues") || ...)
Or you could use regular expression:
if (newStr4.matches("(Mon|Tues|Wed|Thurs|Fri).*"))