Due by the end of this meeting
printListForEach
using a for-each loop.
Note:
the output should look just like the output
from the printListWithIterator
method.
That is:
You might want to see how that method goes about making sure that there are four words per line and each word right-justified in its column.
takeFive
that takes a List of any type
(i.e. a generic List)
and returns a List of the same type
consisting of the first five elements of the given List.
Those five items are removed from the given List.
Test your method using the following code:
You should get the following output:
Your grade will be based on the following rubric:
Submit this/these files: