title: How can I print list of objects in android
body: <p>I am using this code to show missed calls in my application while I am using Call class to define an object each time then store it in test how Can I print all objects in test list in my application?</p>
  
  <pre><code> List&lt;Call&gt; callList = new ArrayList&lt;Call&gt;();
          while (c.moveToNext()) {
              Call call = new Call();
              call.setNumber(c.getString(c.getColumnIndex(CallLog.Calls.NUMBER)));
             /* if (c.getInt(c.getColumnIndex(CallLog.Calls.TYPE)) == CallLog.Calls.OUTGOING_TYPE) {
                  call.setOut(true);
              } else {
                  call.setOut(false);
              }*/
  
              call.setName(c.getString(c.getColumnIndex(CallLog.Calls.CACHED_NAME)));
              call.setTime(c.getLong(c.getColumnIndex(CallLog.Calls.DATE)));
              call.setDuration(c.getLong(c.getColumnIndex(CallLog.Calls.DURATION)));
  
              if ( c.getString(c.getColumnIndex(CallLog.Calls.CACHED_NAME))!= null) 
              {
                  continue;
              }
  
              callList.add(call);
          }
          c.close();
          }
  </code></pre>