title: Convert into Java 8 Lambda expression
body: <p>I am very new to lambda. Can someone please help in converting following nested loops in lambda -</p>
  <pre><code>for (Question question : questionList) {
          formattedText += NEW_LINE + localizeString(QUESTION_STRING_ID) + question.getQuestionText();
          formattedText += NEW_LINE + localizeString(ANSWER_STRING_ID);
          for (Answer answer : question.getAnswers()) {
              formattedText += answer.getAnswerText() + NEW_LINE;
          }
      }
  </code></pre>
  <p>Solution I tried</p>
  <pre><code>for (Question question : questionList) {
          formattedText += NEW_LINE + localizeString(QUESTION_STRING_ID) + question.getQuestionText();
          formattedText += NEW_LINE + localizeString(ANSWER_STRING_ID);
          question.getAnswers().forEach(answer -&gt; {formattedText += answer.getAnswerText() + NEW_LINE;});
  }
  </code></pre>
  <p>Not sure how can I convert both loops into single lambda expression? Also, this solution is not working since it needs formattedText to be declared as final.</p>