8- The Consumer Interface

4:06 4 اسپیکر 2 فصل 90 سيگمنٹ

فصل

  1. 0:03

    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…

  2. 1:46
    فصل 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…