title: How to Efficiently Comparing User Input with multiple Output Scenario in Java
body: <p>I have looked for a bit, trying to find the answer to my question, but I haven't found anything. </p>
  
  <p>I am programming in Java, and I was wondering if there was an efficient way to take the user's input and compare with a number of possible outputs. </p>
  
  <p>I would then like the program to execute code depending on the Input. I know you are able to do <code>switch()</code> <code>if(){</code> as well as do <code>AND</code> or <code>OR</code> in an <code>if(){</code> statement. </p>
  
  <p>I am trying to avoid doing an <code>if(){</code> statement with a bunch of <code>}else if{</code> statement as well as <code>AND</code> / <code>OR</code>s  in an <code>if(){</code> statement. </p>
  
  <p>I was just wondering if a <code>switch()</code> would be the way to go, or if there was a more efficient way of doing that.</p>
  
  <p>EDIT: I haven't written anything yet. I was just wondering. If the question is too vague, don't worry. I was just curious. Thanks again!</p>
  
  <p>Thanks,
    ~Rane</p>