title: How to map two String[] to each other
body: <p>I'm developing an Android app. I'm mapping two arrays to each other with a HashMap. I change these arrays into String[]'s, and map them together. It should return values, but it returns null. I'm not sure where I'm going wrong. I've searched online, but I haven't found anything useful. My code is below:</p>
  
  <p><strong>Part of StationList.java</strong></p>
  
  <pre><code>Spinner2.setOnItemSelectedListener(new OnItemSelectedListener() {
  
          public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                  int arg2, long arg3) {
              // TODO Auto-generated method stub
  
                  String selectedValue = arg0.getItemAtPosition(arg2).toString();
  
                  String[] Yellow_ID = getResources().getStringArray(R.array.Yellow_ID);
                  String[] Yellow_Li = getResources().getStringArray(R.array.Yellow_Line);
  
                  Map&lt;String[], String[]&gt; myMap = new HashMap&lt;String[], String[]&gt;();
                      myMap.put(Yellow_Li, Yellow_ID);
  
                  String[] value = myMap.get(selectedValue);
                  tv12.setText(String.valueOf (value));
  
  
  
  
          }
  </code></pre>
  
  <p><code>Value</code> returns null in the <code>TextView</code>. I think this is due to the values not mapping to each other. I would appreciate any help you could give me.</p>