title: Read out list of objects in Java
body: <p>Hi i'm trying to read out the following object: </p>
  
  <p><img src="https://i.stack.imgur.com/7NsLe.png" alt="enter image description here"></p>
  
  <p>Can anyone help me out how I need the value for the project?</p>
  
  <p>I already tried this: </p>
  
  <pre><code>  for(int i = 0; i &lt; ((Object[]) ret).length; i++){
                  Map&lt;String, Object&gt; map2 = (Map&lt;String, Object&gt;) ret[i];
                  int x = 0;
                  for (Map.Entry&lt;String, Object&gt; entry : map2.entrySet())
                  {
                      //store data in list
                      if(x == 0){
                          System.out.println(entry.getKey() + "/" + entry.getValue());
                          x++;
                      }
                      if(x==1){
                        //read out projectid
  
                      }
                  }
              }
  </code></pre>
  
  <p>When I try to output the value I got : project_id/[Ljava.lang.Object;@41923200</p>
  
  <p>EDITED : </p>
  
  <p>Showing data in listview :</p>
  
  <pre><code>private class ListViewLoaderTask extends AsyncTask&lt;String, Void, SimpleAdapter&gt;{
  
          @Override
          protected SimpleAdapter doInBackground(String... strJson) {
              connector=new OpenerpRpc(getBaseContext());
              connector.Config();
              current_page += 1;
              listOffValues = getListOffFieldValues(current_page, false, listOffValues); 
  
              String[] from = { "project_id"};
  
              int[] to = { R.id.tv_project_id};
              SimpleAdapter adapter = new SimpleAdapter(getBaseContext(), listOffValues, R.layout.lv_gps_layout, from, to);
              return adapter;
          }
          /** Invoked by the Android on "doInBackground" is executed */
          @Override
          protected void onPostExecute(final SimpleAdapter adapter) {
              // Setting adapter for the listview
              mListView.setAdapter(adapter);
  
              for(int i=0;i&lt;adapter.getCount();i++){
  
                  HashMap&lt;String, Object[]&gt; hm = (HashMap&lt;String, Object[]&gt;) adapter.getItem(i);
                      String projectID = (String) hm.get("project_id")[1].toString();
  
                  HashMap&lt;String, String&gt; hmDownload = new HashMap&lt;String, String&gt;();
                  hmDownload.put("project_id",projectID);
  
  
                  adapter.notifyDataSetChanged();
  
                  mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
                      public void onItemClick(AdapterView&lt;?&gt; parent, View view,int position, long id) {
                          String listName;
                          HashMap&lt;String, String&gt; hmDownload = new HashMap&lt;String, String&gt;();
                          listName = hmDownload.get("project_id");
                          Intent myIntent = new Intent(MainActivity.this, YardActivity.class);
                          MainActivity.this.startActivity(myIntent);
                      }
                  });
  
              }
              progress.dismiss();
              Log.d("/****","Data from odoo is finished");
          }
      }
  </code></pre>