I was wondering how I should write this if statement in my assignment.
The question is:
Print option 2 if one of the strings begins with the letter w
or has 5 characters
.
I would use the .contains
to find the "w".
if (two.contains("w") {
System.out.println(two);
but the one with the characters I am unsure how to find the method.