I am getting the error for the following line:
var playerAmt = player.stream().filter(Card::isTrue).count();
Error:
var cannot be resolved to a type
I am not writing the whole code here because it's quite long and I think it won't help much. The same error exists at different places in the code.
I am using Eclipse IDE. I also searched this on the internet but didn't help.