Is there a data structure in Java that can contain more than 4 values?
So something like strings
Map<String, String, String, String>;
This is necessary in order to be able to reduce the number of if if else that I have. I would like to be able to do the following.
check if the data structure contains an element that matches a specific value, if it does, it assigns a link (which is a string) to a variable, and then adds the code and message to another variable that is associated with that link.
If not, is there a good workout to achieve this?
source
share