8- The Consumer Interface
4:06
4 Ke Keiki
2 Nā Hapa
90 ʻĀpana
Nā Hapa
-
0:03Papa 1: The consumer interface represents an operation that takes a single argument and doesn't return a value. 102s · Speaker 1
The consumer interface represents an operation that takes a single argument and doesn't return a value. Now, why does this matter? Why do you have to learn about the consumer interface? Well, a lot of methods in Java expect an object that i…
-
1:46Papa 2: two, and three. 137s · Speaker 3
two, and three. Now there are two ways to iterate over this list. We can use a for each loop. So for each item in list print each item. Now there is another way to iterate over this list. We can call list .foreach and take a look. this meth…