Hacker News new | ask | show | jobs
by AYBABTME 4512 days ago
Can always make:

   final int[] a = {0};
   list.forEach(element -> { a[0]++; });