Java 8 implementation (List initialized with 60
zeroes):
List list = IntStream.of(new int[60])
.boxed()
.collect(Collectors.toList());
new int[N]
- creates an array filled with zeroes & length N
boxed()
- each element boxed to an Integer
collect(Collectors.toList())
- collects elements of stream