title: how to compare more than two Strings in Java?
body: <p>I have 4 strings s1,s2,s3,s4. and i want to compare it with "yes","no" and "both"
  It has to be like <code>(s1.equals("yes"));</code></p>
  
  <ol>
  <li>if ALL strings are equal to "yes" it should give one result.</li>
  <li>if ALL strings are equal to "no" it should give one result.</li>
  <li>if any 2 strings are equal to "yes" and another 2 strings are equal to "no" it has to give one result.</li>
  <li>if any 3 strings are equal to "yes" and 1 string equal to "no" it has to give one result.</li>
  <li>if any 3 stings are equal to "no" and 1 string is equal to "yes" it has to give one result..</li>
  </ol>
  
  <p>How to do this comparison?</p>