Variable expected
<pre><code>private void calculateForEachQuestion() {
    ...
    if (questions.size() &gt;= answers.size()) {
        answers.forEach(answer -&gt; {
            if (questions.contains(answer))
                this.answer.setPoints((this.answer.getPoints())++);
                // Variable expected  ^                    
    });
}
</code></pre>

<p>The error I encountered is:</p>

<blockquote>
  <p>unexpected type<br>
  required: variable<br>
  found: value</p>
</blockquote>

<p>What is wrong with the statement?</p>

<pre><code>this.answer.setPoints((this.answer.getPoints())++);
</code></pre>