I'm trying to count how many items it contains in a ArrayList
, I already have something ready:
private int quantidadeN = listaNotificacaos.size();
It should save the amount inside the variable quantidadeN
, but when I play the page it brings a result 0.
On the page I'm calling with this code:
#{notificacaoControle.quantidadeN}
Can anyone help me?