title: Trouble getting value of a HashMap element in Android
body: <p>I have the following code, with which I am trying to create a seperated list by using <a href="http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/" rel="nofollow">this</a> class.</p>
  
  <p>I have this:</p>
  
  <pre><code>public Map&lt;String, ?&gt; createItem(String title, String caption, String uri) {
          Map&lt;String, String&gt; item = new HashMap&lt;String, String&gt;();
          item.put(ITEM_TITLE, title);
          item.put(ITEM_CAPTION, caption);
          item.put(ITEM_URI, uri );
          return item;
      }
  
  public void onCreate(Bundle icicle) {
          super.onCreate(icicle);
          /** @todo Draw the splash screen */
          setContentView(R.layout.list_complex);
          List&lt;Map&lt;String,?&gt;&gt; security = new LinkedList&lt;Map&lt;String,?&gt;&gt;();
          security.add(createItem("Remember passwords", "Save usernames and passwords for Web sites","uri"));
          security.add(createItem("Clear passwords", "Save usernames and passwords for Web sites","uri2"));
          security.add(createItem("Show security warnings", "Show warning if there is a problem with a site's security","uri3"));
  
  SeparatedListAdapter adapter = new SeparatedListAdapter(this);
          adapter.addSection("Security", new SimpleAdapter(this, security, R.layout.list_complex,
              new String[] { ITEM_TITLE, ITEM_CAPTION}, new int[] { R.id.list_complex_title, R.id.list_complex_caption }));
  
          ListView list = new ListView(this);
  
          list.setOnItemClickListener(new OnItemClickListener() {
                public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                        int position, long id) {
                   try{
                        Log.v(TAG, "Pressed id: "+(parent.getItemAtPosition(position).getClass()));
                   }catch(Exception e){
                       Log.v(TAG, "Field not found: "+e.getCause()+" : "+e.getMessage());
                   }
  //Log.v(TAG, "Pressed id: "+parent.);
                    //  Intent newActivity = new Intent(view.getContext(),agones.class);     
                          //     startActivity(newActivity);
  
                    }
                  });
          list.setAdapter(adapter);
          this.setContentView(list);
  </code></pre>
  
  <p>What I'm trying to do here is to get the field uri from the HashMap. If I log this out, it tells me that the class is of the instance HashMap, but when I try to use the method <code>.get()</code> on it, Eclipse says this:</p>
  
  <pre><code>The method get() is undefined for the type Class&lt;capture#5-of ? extends Object&gt;
  </code></pre>
  
  <p>How do I go about fixing this? I'm sorry if this is simple, but since I'm new, I cant wrap my head around this.</p>