title: Is there a data structure in Java that can hold 4 or more values
body: <p>Is there a data structure in Java which can hold more than 4 values?</p>
  
  <p>So something along the lines of </p>
  
  <pre><code>Map&lt;String, String, String, String&gt;;
  </code></pre>
  
  <p>This is needed to be able to reduce the number of if else statements I have. I would like to be able to do the following.</p>
  
  <p>check if the data structure contains an element which matches a certain value, if it does then it assigns a link(which is string) to a variable and then adds a code and message to another variable which is related to that link.</p>
  
  <p>if not is there a good workout around to achieve this?</p>