title: I want to Put two arrays value in Map as key-Value
body: <p>I want to Put two arrays value in LinkedHashMap as key-value.
  Here is the snippet that I'm using:</p>
  
  <pre><code>        String[] s = answer.split("\\,");  
          String[] ss = aa.split("\\,");
          System.out.println(ss.length);  --&gt;prints 3 
          System.out.println(s.length);   --&gt;prints 3
  </code></pre>
  
  <p>What I want is to put s values as Key and ss values as Value in HashMap.</p>
  
  <p>I'm trying to write code.</p>
  
  <pre><code>    for(int i=0;i&lt;s.length;i++){
              for(int j= 0;j&lt;ss.length;j++){
                  if(s[i].length()==s[j].length()){
                      testMap.put(s[i], ss[j]);
                  }
              }
          }
  </code></pre>
  
  <p>But unable to Put into Map. What I've done wrong?
  And I'm using LinkedHashMap to preserve the order of Insertion.</p>