title: HashMap and ArrayList confusion in retrieval
body: <p>I have  a problem on arraylist and hashmap</p>
  
  <p>As according to my requirement, I am storing the data into HashMap and after that I have created a List as List>.</p>
  
  <pre><code>        HashMap&lt;String,String&gt; hashmap;
          static List&lt;HashMap&lt;String,String&gt;&gt; hashmap_string;
  </code></pre>
  
  <p>And while retrieving the value from database and putting it on HashMap and ArrayList like:</p>
  
  <pre><code>                    contract_number=c.getString(c1);
                      Log.i("c1.getString,contract_number", contract_number);
                      String service_level=c.getString(c2);
                      hashmap=new HashMap&lt;String, String&gt;();
                      hashmap.put(contract_number, service_level);
                      hashmap_string.add(hashmap);
  </code></pre>
  
  <p>And now I want to retrieve the value as String,String</p>
  
  <p>And when I am applying the code as:</p>
  
  <pre><code>                for(int i=0;i&lt;hashmap_string.size();i++)
                  {
                      Log.i("arraylist", ""+hashmap_string.get(i));
                  }
  </code></pre>
  
  <p>I am getting a single string value in the formet as</p>
  
  <pre><code>               {Contract,ServiveValue}
  </code></pre>
  
  <p>but I want to split this into 2 string values...Also these values are redundant and if am using hashMap then it will not showing me the redundant value.</p>
  
  <p>Please help me on this..</p>