title: How to read a csv and create a list of maps out of each line?
body: <p>I have a Java class to automate some behaviour on the web, my only problem is that now instead of the static data that I have I need to use the data from the csv.</p>
  
  <p>for example:</p>
  
  <p>this is one of the actions in my automation class:</p>
  
  <pre><code>WebElement supplierAddressField = driver.findElement(By.id("FieldaddressOfSupplierLine"));
          supplierAddressField.sendKeys("hollywood blvd 34");
  </code></pre>
  
  <p>So now, instead of the static "supplier address" value I want to iterate on each line of the <code>.sendKeys(csvLineMap.get("supplier address"));</code></p>
  
  <p>Because in each line I dont need all the headers info, this is why I think it will be the best to just create a list of maps, that each map key will be the header of the csv and the value will be the value for this header in a specific line.</p>
  
  <p>this is the structure of the csv:</p>
  
  <p><img src="https://i.stack.imgur.com/babrB.png" alt="enter image description here"></p>
  
  <p>Please help me to figure this out...thanksss!!</p>