title: How to print the values of the pojo object which is inside an arraylist in java?
body: <p>I have a requirement where i have to print the values which are getting saved in a database. I have pojo object which i am passing it in a list and then saving the entire list in database. Please find the below code.</p>
  
  <pre><code>List dataList=new ArrayList();
  Vehicles vehiclePojoObject=new Vehicles();
  vehiclePojoObject.setName("Cycle");
  vehiclePojoObject.setColor("Blue");
  dataList.add(vehiclePojoObject);
  </code></pre>
  
  <p>Now i have to print the values which is contained by vehiclePojoObject. How can it be acheived. Please guide. Thanks in advance.</p>
  
  <p><strong>Note</strong>: There are not one object but multiple objects which are getting stored in the list.</p>