title: How to convert multiple attributes of object into List<String> using java 8
body: <p>I am wondering if there is a way to combine multiple attributes from an object into a list of String. In My Case, I have an object with the name "debitCardVO" and I want it to convert from object to List</p>
  
  <p>Here is my code Snippet:</p>
  
  <pre><code>for (DebitCardVO debitCardVO : debitCardVOList) {
      List&lt;String&gt; debitCardList   = debitCardVOList.stream()
              .map(DebitCardVO::getCardBranchCode,DebitCardVO::getAccountNo)
              .collect(Collectors.toList());
  }
  </code></pre>