Suppose that we have an ArrayList, and we want to call forEach on it to print all its elements without using a loop. What sort of nested class should we use for this invocation? We do not plan to reuse it anywhere else in the program.
Select ONE option:
(3 marks)
a) Static member class
b) Non-static member class
c) Local class
d) Anonymous class